2011-12-30 10 views
0

gSOAPライブラリを使用してC++で.wsdlからクライアントWebサービスを実装しています。 と私は問題を抱えているが、私はこのようなtcpdumpのデータ交換に参照してください。gSOAP Webサービスがネームスペースなしで応答する

REQUEST

<?xml version="1.0" encoding="UTF-8"?> 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://tempuri.org/" xmlns:ns2="http://xxx.pl/"> 
    <SOAP-ENV:Body> 
    <ns1:AuthenticateUserRequest> 
     <ns1:login>xxxx</ns1:login> 
     <ns1:password>xxxx</ns1:password> 
    </ns1:AuthenticateUserRequest> 
    </SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 

応答

<?xml version="1.0" encoding="UTF-8"?> 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> 
    <SOAP-ENV:Body> 
    <authenticate> 
     <token>xxxx</token> 
     <server>xxxx</server> 
    </authenticate> 
    </SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 

しかしのgSOAPは、NS1が名前空間です(名前空間なしに応え好きではありませんwsdlから私が実装しているもの)、私にはエラーがスローされます。

SOAP 1.1 fault: SOAP-ENV:Client[no subcode] 
"Validation constraint violation: tag name or namespace mismatch in element 'authenticate'" 
Detail: [no detail] 

この名前空間の問題を解決するにはどうすればよいですか?

ありがとうございました!

答えて

関連する問題