SOAP Fault 意外元素,但看起来一样

问题描述 投票:0回答:1

我收到这个错误。 我已经看到这个答案好几次了,但在那些问题中,有一个wrogn名称或案例的问题。 这个他们看起来是一样的。

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header />
<SOAP-ENV:Body>
    <SOAP-ENV:Fault>
        <faultcode>SOAP-ENV:Server</faultcode>
        <faultstring xml:lang="en">unexpected element (uri:"http://service.xxx.com/provider/aaa/bbb/2015/", local:"retrieveAccountRequest"). Expected elements are &lt;{http://service.xxx.com/provider/aaa/bbb/2015/}tns:retrieveAccountRequest&gt;</faultstring>
    </SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
spring-boot soap jaxb spring-ws
1个回答
0
投票

我没有注意到预期元素上的 "tns:"。 总是那些愚蠢的,不小心的东西让你。

© www.soinside.com 2019 - 2024. All rights reserved.