2013-08-21 3 views
0

나는 웹 서비스의 자동화 된 테스트에 SoapUI를 사용하려고합니다.'이해 못했습니다'MustUnderstand "헤더 (들) 'SoapUI 응답의 오류

---------------- Request --------------------------- 
POST https://domino.auto-partner.net/int/db/pub/webservi.nsf/ITSMSchnittstelle?OpenWebService HTTP/1.1 
Connection: close 
Accept-Encoding: gzip,deflate 
Content-Type: text/xml;charset=UTF-8 
SOAPAction: "RETURNRESPONSE" 
Authorization: Basic 
User-Agent: Jakarta Commons-HttpClient/3.1 
Host: domino.auto-partner.net 
Content-Length: 621 

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:DefaultNamespace"> 
    <soapenv:Header/> 
    <soapenv:Body> 
     <urn:RETURNRESPONSE soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
     <XDBREPID xsi:type="xsd:string">C125724100348230</XDBREPID> 
     <XDOCID xsi:type="xsd:string">9AAF42C6539D4775C1257AB8004D1E7C</XDOCID> 
     <XCHGID xsi:type="xsd:string">CRQ000000012555</XCHGID> 
     </urn:RETURNRESPONSE> 
    </soapenv:Body> 
</soapenv:Envelope> 

---------------- Response -------------------------- 
HTTP/1.1 200 OK 
Date: Thu, 18 Jul 2013 06:47:11 GMT 
Server: Lotus-Domino 
Content-Type: text/xml; charset=utf-8 
Content-Length: 558 
Connection: close 

<?xml version="1.0" encoding="UTF-8"?> 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> 
    <soapenv:Body> 
     <ns1:RETURNRESPONSEResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:DefaultNamespace"><RETURNRESPONSEReturn xsi:type="xsd:string">Success</RETURNRESPONSEReturn></ns1:RETURNRESPONSEResponse> 
    </soapenv:Body> 
</soapenv:Envelope> 

I : 성공적인 응답을 이끌어 내 클라이언트의 동일한 요청을 실행

---------------- Request --------------------------- 
Request Headers: Authorization : Basic 
Host : domino.auto-partner.net 
Content-Length : 1286 
SOAPAction : "RETURNRESPONSE" 
Accept-Encoding : gzip,deflate 
User-Agent : Apache-HttpClient/4.1.1 (java 1.5) 
Connection : Keep-Alive 
Content-Type : text/xml;charset=UTF-8 


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:DefaultNamespace" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
    <soapenv:Header/> 
    <soapenv:Body> 
     <urn:RETURNRESPONSE soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
     <XDBREPID>C125724100348230</XDBREPID> 
     <XDOCID>23EECD26930551E0C125759B004A802C</XDOCID> 
     <XCHGID>CRQ000000012811</XCHGID> 
     </urn:RETURNRESPONSE> 
    </soapenv:Body> 
</soapenv:Envelope> 

---------------- Response -------------------------- 
Response Headers: Date : Wed, 17 Jul 2013 10:44:39 GMT 
#status# : HTTP/1.1 200 OK 
Content-Length : 453 
Keep-Alive : timeout=5, max=100 
Connection : Keep-Alive 
Content-Type : text/xml; charset=utf-8 
Server : Lotus-Domino 


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
    <soapenv:Body> 
     <soapenv:Fault> 
     <faultcode>soapenv:MustUnderstand</faultcode> 
     <faultstring>Did not understand "MustUnderstand" header(s):</faultstring> 
     <detail/> 
     </soapenv:Fault> 
    </soapenv:Body> 
</soapenv:Envelope> 

: 나는 테스트를 자동화 할 서버를 형성하는 요청을 보낼 때, 나는 항상 다음과 같은 응답을 얻을 다른 WS-A 및 WS-RM 설정을 가지고 놀았지만 그 중 누구도 문제를 해결하지 못했습니다.

응답을 이해할 필요가 없다는 것을 어떻게 정의 할 수 있습니까? 이 설정은 SoapUI가 아니라 User-Agent에있을 수 있습니까?

답변

1

나는 동일한 문제가있었습니다.

다음 요청 속성 "WSS-Password Type"의 값을 공백으로 변경 한 후에 작동했습니다.

관련 문제