本文主要参考如下两个链接,并整理:
Java使用SOAP: http://www.cnblogs.com/linjiqin/archive/2012/05/07/2488880.html
C# send soap and get response: http://stackoverflow.com/questions/4791794/client-to-send-soap-request-and-received-response
1.webservice提供方:http://www.webxml.com.cn/zh_cn/index.aspx
2.下面我们以“获得腾讯QQ在线状态”为例。网页介绍参考:http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?op=qqCheckOnline
代码如下:
using System.IO;
usin