The contract of my method is like this:
[OperationContract]
[WebInvoke(Method = "DELETE",
RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json,
UriTemplate = "/myMethod/{param}/",
BodyStyle = WebMessageBodyStyle.Bare)]
void myMethod(string param);
I test it via Fiddler.
http://localhost:1234/MyService.svc/jsonMS/myMethod/1/
I get the error ‘Method not allowed.’.
If you test this method in Fiddler, you need to make sure to:
DELETEmethod (notGET) when calling this method