none
Method Not Allowed RRS feed

  • Question

  • I am getting method not allowed for the following

    http://10.0.0.5:3090/TaskServiceAssignment.svc/Task/Add/"SDSD"

    As shown above I am trying to execute the method from browser but getting the following error 

    Method not allowed. Please see the .. for constructing valid requests to the service.

    Following is the method defined in the Service.

    [OperationContract]

         [

    WebInvoke(Method = "POST",

                BodyStyle =

    WebMessageBodyStyle.Wrapped,

            UriTemplate =

    "Task/Add/{taskName}")]

        

    stringAddTask(stringtaskName);

    Sunday, April 19, 2015 7:35 PM

Answers