gsoap是一个功能很强大的工具,它可以根据wsdl生成对应的C/CPP程序,从而帮助C/C++程序员更方便简单的访问web serivce.
-----------------详细资料以及下载在、http://gsoap2.sourceforge.net/。
首先,打开cmd窗口,进入到gsoap/bin/win32里执行第一步,第二步
第一步:
QQ在线状态查询的WSDL是: http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl
执行wsdl2h.exe -s -o qqOnlineWebService.h http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl
生成了qqOnlineWebService.h文件。
第二步:
接着执行:
soapcpp2.exe qqOnlineWebService.h