I have a webmethod like this:
[WebMethod]
public string HelloWorld(string a)
{
return a;
}
The instructions to post to my asmx webmethod say to post like this:
POST /Service1.asmx/HelloWorld HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Content-Length: length
a=string
However I want to be able to accept this:
POST /Service1.asmx/HelloWorld HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Content-Length: length
string
How can I do that? Thanks