开发者

Request to Web Service (POST)

开发者 https://www.devze.com 2023-02-17 05:17 出处:网络
I\'m trying to send a request to my web service that I\'ve created (http://localhost/WebServices/DisplayResolution.asmx?op=Get). I believe the web service requires POST to be sent.

I'm trying to send a request to my web service that I've created (http://localhost/WebServices/DisplayResolution.asmx?op=Get). I believe the web service requires POST to be sent.

How can 开发者_如何学CI do this from my C# desktop client? Should I use SOAP as the web service recommends?!

Image


You may want to use Visual Studio to create a the necessary proxy classes to consume your web service by adding a "Service reference" to your client project.

This article on Consuming Web (asmx) Services might help.


You can use WebClient class to make this call.

Also since this SOAP web service there is nothing to stop you from creating web reference of this web service in to your applicaiton and use the proxy class.

0

精彩评论

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