4

我有这个消息

 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
     <soapenv:Body>
     <soapenv:Fault>
        <faultcode>soapenv:Server</faultcode>
        <faultstring>LOGIN-ERR:Incorrect password - user could not be logged in.</faultstring>
       </soapenv:Fault>
     </soapenv:Body>
   </soapenv:Envelope>

Schema 验证很好,但是 SOAP UI 工具,当单击“检查 WS-I 合规性”时,它给出了一个失败的状态,BP1305 断言失败。我找不到 1305 是什么,这是详细信息

Result
  failed
  Failure Detail Message
  HTTP/1.1 200 OK
  Transfer-Encoding: chunked
  Date: Thu, 22 Jul 2010 20:41:43 GMT
  Set-Cookie: JSESSIONID=C9D19FE6AAD89DFCB6BA9FE196E08D40; Path=/
  Content-Type: text/xml;charset=utf-8
  Server: Apache-Coyote/1.1
  Element Location:
      lineNumber=26
4

2 回答 2

3

问题似乎是您正在返回 SOAP Fault 消息,但 HTTP 状态代码为 200,因此需要发送 SOAP Faults 时 HTTP 状态代码为 500。

于 2010-08-18T01:18:35.030 回答
0

您缺少故障消息中的详细信息元素。如果 wsdl 错误是由于请求中 body 元素的内容而产生的,则它是必需的元素

消息应该是这样的(详细元素应该包含特定于应用程序的信息。但是可以为空。不可以丢失):

 <soapenv:Fault>
   <faultcode>soapenv:Server</faultcode>
   <faultstring>LOGIN-ERR:Incorrect password - user could not be logged in.</faultstring>
   <detail></detail>
  </soapenv:Fault>
于 2010-07-22T21:01:57.927 回答