SoapUI - 验证错误java.lang.String无法强制转换为org.apache.xmlbeans.XmlError

时间:2017-04-10 13:53:27

标签: java soap soapui

<soap:Envelope xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsrl="http://docs.oasis-open.org/wsrf/rl-2" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns1="http://workflow.comarch.com/SDService_ws" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsrp="http://docs.oasis-open.org/wsrf/rp-2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://www.w3.org/2005/08/addressing">
   <soap:Body wsu:Id="myBody-1491835424">
      <ns1:listProcessesResponse>
         <listProcessesReturn xsi:nil="true" xsi:type="tns:listProcessesReturn"/>
      </ns1:listProcessesResponse>
   </soap:Body>
</soap:Envelope>

SOAP响应有什么问题?我正在使用SoapUI来验证SOAP Answers。它检查收到的响应是否与WSDL标准兼容。因此,当我在SoapUI中运行验证时,会产生以下错误。

  

java.lang.String无法强制转换为org.apache.xmlbeans.XmlError

Here it is shown on the screen

1 个答案:

答案 0 :(得分:2)

消息本身看起来像SoapUI的错误处理中的错误

  

SOAP响应有什么问题?

您的x错了

schemaLocation

你有两次相同的URI

此外,您正在使用名称空间xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/" 而未在

中定义它
tns