2011-12-30 8 views
0

gSOAP 라이브러리를 사용하여 C++의 .wsdl에서 클라이언트 웹 서비스를 구현하고 있습니다. 그리고 난은 문제가 있다면, 난이 같은 tcpdump와 데이터 교환을 참조하십시오gSOAP 웹 서비스가 네임 스페이스없이 응답합니다.

요청

<?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] 

이 네임 스페이스 문제를 해결하기 위해 내가 할 수있는 일은 무엇입니까?

도움 주셔서 감사합니다.

답변

관련 문제