读书人

gsoap域名空间怎么改变

发布时间: 2012-04-15 18:39:21 作者: rapoo

gsoap域名空间如何改变?
我写一gsoap的客户端(c++),访问axis写的webservice.
gsoap 默认生成的格式为:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://ws.innet.com/weiweiService/">
<SOAP-ENV:Body>
<ns1:spLogin>
<streamNo xsi:type="xsd:string"></streamNo>
</ns1:spLogin>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

***********************************************************************************************
但是webservice要求的格式为:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://ws.innet.com/weiweiService/">
<SOAP-ENV:Body>
<ns1:spLogin xmlns:ns1="http://ws.innet.com/weiweiService/>
<streamNo xsi:type="xsd:string"></streamNo>
</ns1:spLogin>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

找了很久没找到方法,gsoap应该很方便改成这样,有知道的大侠给个提示??????

[解决办法]
纯粹不懂
纯粹帮顶
[解决办法]
不懂,帮顶。。。
[解决办法]
定义头文件的时候使用namespace
[解决办法]
加上namespace啊。

读书人网 >C++

热点推荐