开发者

ASP.NET : sending a soap request in a HTTP post request to a webservice

I have a webservice that exposes a function called ADD(int a, int b)

and i am trying to send a request to it without adding a wsdl/reference and then calling the function, In other words, i want to explicitly send a request t开发者_开发知识库o the webservice address.

so if i send a POST request with a well-formatted-soap XML envelope as the message, would that work?


If you enable HttpGet and/or HttpPost in your web.config, you can do what you are asking.

Enable ASP.NET ASMX web service for HTTP POST / GET requests

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜