标题:gsoap 调用多个wsdl 只产生最后一个wsdl对应的接口?
作者:shaoyoujing
日期:2016-07-01 08:18
内容:
按照手册说法:
第一步:
Multiple WSDL specifications can be processed at once and saved to one file with the -o option:
> wsdl2h -o file.h file1.wsdl file2.wsdl file3.wsdl
生成file.h
第二步:
To process a gSOAP header file file.h (generated by wsdl2h) to generate advanced XML data bindings for C++, use:
> soapcpp2 -i -Iimport file.h
生成的soapBalanceBusinessSoapBindingProxy.h 这个......proxy.h文件中只有最后file3.wsdl这个对应的接口!!!
第二步执行输出,貌似用各个命名空间生成时,掩盖了??
#1 [XChinux 07-01 08:38]
SOAP这玩意儿使用起来太麻烦了,护一个简单点的吧。
#2 回 XChinux 的帖子 [uidab 07-01 09:00]
XChinux:SOAP这玩意儿使用起来太麻烦了,护一个简单点的吧。 (2016-07-01 08:38)
有什么简单的?我们最近项目做完了,也是用的它,主要是设备端是ARM
#3 [shaoyoujing 07-01 16:43]
我已经解决了 只是提供webservice服务那一方把service name 写的一样导致的覆盖
细节可参考了
http://pdn.pelco.com/blog/retrieving-recorded-video-onvif-device#sthash.vYKgxuAg.dpbs
#4 [XChinux 07-03 20:32]
还用http,数据格式用JSON或XML(建议JSON),这样使用起来比SOAP简单多了,现在不流行这个么.