J'ai un webmethod comme ceci:Http poste à asmx avec le paramètre sans nom
[WebMethod]
public string HelloWorld(string a)
{
return a;
}
Les instructions pour poster à mon asmx webmethod dire à afficher comme ceci:
POST /Service1.asmx/HelloWorld HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Content-Length: length
a=string
Cependant, je veux être pouvoir accepter ceci:
POST /Service1.asmx/HelloWorld HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Content-Length: length
string
Comment puis-je faire cela? Merci
Pourquoi voulez-vous faire cela? Aucun outil standard ne pourra communiquer avec votre service Web. –