I am having trouble working out what my XML should look like when performing a post request through WCF REST services. When using a datacontract i have no problem at all but when i just want to send across one parameter for example an int, i get the following error - "The remote server returned an error: (405) Method Not Allowed. "
[OperationContract]
[WebInvoke(UriTemplate = "/DeleteUser", Method= "Post")]
bool DeleteUser(int userId);
What should my XML look like?
Thanks in advance