gpt4 book ai didi

soap - 如何使 SOAP 错误消息符合 WS-I

转载 作者:行者123 更新时间:2023-12-01 02:55:01 25 4
gpt4 key购买 nike

我有这个消息

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


模式验证良好,但是 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

最佳答案

问题似乎是您正在返回 SOAP 故障消息,但是 HTTP 状态代码为 200,则需要使用 HTTP 状态代码 500 发送 SOAP 故障。

关于soap - 如何使 SOAP 错误消息符合 WS-I,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3313328/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com