【发布时间】:2021-10-28 08:13:19
【问题描述】:
如何更改spring中soap故障的状态码?我们尝试迁移的网络服务总是响应 http 200,即使它有带有错误详细信息的 soapfault .. 我复制这种行为,因为它是一个迁移,但我似乎找不到解决方法:(
示例响应:
Http 200
<?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:ds="http://www.ilog.com/rules">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>Error when executing the ruleset</faultstring>
<faultactor>http://www.ilog.com/rules</faultactor>
<detail>
<ds:DecisionServiceException>
<ds:exception>Error when executing</ds:exception>
</ds:DecisionServiceException>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
【问题讨论】:
标签: java spring soap soapfault