level 1
贴吧用户_0bW96MP
楼主
我现在在做一个webservice服务端,cxf 在执行service的方法之前或之后报错,比如传过来标签错误或者解析返回值错误,如何返回自定义标签如
<soap:Result>
<code>soap:Client</code>
<message>Unmarshalling Error: [dateTime?] </message>
</soapResult>
而不是
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unmarshalling Error: [dateTime?] </faultstring>
</soap:Fault>
2021年08月13日 03点08分
1
<soap:Result>
<code>soap:Client</code>
<message>Unmarshalling Error: [dateTime?] </message>
</soapResult>
而不是
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unmarshalling Error: [dateTime?] </faultstring>
</soap:Fault>