Allow HTTP POST or HTTP GET on a ServiceOperation RRS feed

  • Question

  • So I have my service operation and I have many different potential applications/application developers who will be coding against this service operation.

    I have added

    [WebInvoke] to my ServiceOperation

    HTTP Post works fine


    is there no way to allow both HTTP Post and HTTP Get on the same operation?

    For example:    



    Or am I limited to choosing a single HTTP method ?







    Thursday, May 6, 2010 5:54 PM

All replies

  • Hi,

    Currently we limit WebGet to GET and WebInvoke to POST and each method can only have one of these (we pick WebGet if both are specified). On the other hand nothing prevents you from exposing two service operations which internally share the implementation.


    Vitek Karas [MSFT]
    Thursday, May 6, 2010 10:38 PM