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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -