Request to Web Service (POST)
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.
精彩评论