关于正常怎么使用gSOAP的话,下面那篇博客已经讲得非常详细,我就不再赘述了
https://www.cnblogs.com/dengpeng1004/p/6165751.html
问题1:
WCF server with basicHttpBinding use soap1.1, while gSoap generates client that uses soap1.2.
如果你使用的gSOAP是1.2版本,而WebServer服务器是1.0版本,WCF server 和 gSoap产生的 client端之间通讯的soap message format不匹配。当客户端发起请求时,server端无法识别请求。但是你如果为了版本去另下一个gSOAP,时间成本有点多,其实gSOAP有向下兼容的功能。那现在我们看看如何来生成1.0版本的服务端。
在生成好的WebServer.h中修改101行到103行。
// This service uses SOAP 1.2 namespaces: //gsoap SOAP-ENV schema namespace: http://www.w3.org/2003/05/soap-envelope //gsoap SOAP-ENC schema namespace: http://www.w3.org/2003/05/soap-encoding
改为
// This service uses SOAP 1.1 namespaces: //gsoap SOAP-ENV schema namespace: http://schemas.xmlsoap.org/soap/envelope/ //</