What should an XML post request look like for WCF RESTful service with a single parameter? -


i having trouble working out xml should when performing post request through wcf rest services. when using datacontract have no problem @ when want send across 1 parameter example int, following error - "the remote server returned error: (405) method not allowed. "

[operationcontract]   [webinvoke(uritemplate = "/deleteuser", method= "post")]   bool deleteuser(int userid); 

what should xml like?

thanks in advance

dj -- way i've found asking swipe example link. uses stream class bring in post parameters in body of http request. have slog through manually...

hope this helps.


Comments