开发者

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

开发者 https://www.devze.com 2022-12-15 04:45 出处:网络
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 e

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

精彩评论

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