客户不想收到故障肥皂消息,而是喜欢类似的东西
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns2:TestResponse xmlns:ns2="http://teclot.com/exchange">
<ns2:return>ERROR</ns2:return>
</ns2:TestResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
我们在项目中使用 Spring Integration。我认为它应该看起来像
<int-ws:inbound-gateway id="wsInboundGateway"
request-channel="inboundChannel"
marshaller="serverSchemaMarshaller"
unmarshaller="serverSchemaMarshaller"
error-channel="errorChannel" />
<bean id="errorWrapper" class="pro.tender.customer.ws2apmq.ErrorWrapper"/>
<int:transformer id="errorWrap" input-channel="errorChannel" ref="errorWrapper" output-channel="inboundChannel" />
我的错误在哪里?
`