SoapUI 响应中出现“不理解“MustUnderstand”标头”错误

2024-03-08

我正在尝试使用 SoapUI 进行 Web 服务的自动化测试。当我从应自动进行测试的服务器发送请求时,我总是得到以下响应:

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

在我的客户端上运行相同的请求会得到成功的响应:

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

我尝试了不同的 WS-A 和 WS-RM 设置,但没有一个解决了问题。

我如何定义响应不必被理解?难道这个设置不在SoapUI中而是在User-Agent中?


我遇到过同样的问题。

在我更改了以下请求属性中的值后,它对我有用”WSS-密码类型” 为空白。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

SoapUI 响应中出现“不理解“MustUnderstand”标头”错误 的相关文章

随机推荐