【发布时间】:2017-10-05 18:07:58
【问题描述】:
我在一个项目中使用 Spring Integration,该项目集成了(成功地)各种 ReST/JSON 和 SOAP 端点。 现在我需要调用一个配置为接受 Plain-Old-Xml-over-HTTP 的 BusinessWorks 实例。 从“Spring Integration in Action book”中,我得到了一个提示,我应该为此使用 int-ws:outbound-gateway。 此配置生成正确的请求,但在 SOAP 中:
<int-ws:outbound-gateway
uri="..."
request-channel="request" reply-channel="reply"
marshaller="marshaller" unmarshaller="unmarshaller"/>
我不知道如何配置它以将有效负载中的对象作为 POX(无 SOAP 信封)发送。 我试过这个:
<int-ws:outbound-gateway
uri="..."
request-channel="request" reply-channel="reply"
marshaller="marshaller" unmarshaller="unmarshaller"
message-factory="poxMessageFactory"/>
<bean id="poxMessageFactory"
class="org.springframework.ws.pox.dom.DomPoxMessageFactory"/>
请求似乎只能正确切换到 XML,但请求的主体是空的(Spring Integration 有效负载中没有对象的踪迹)。 谁能告诉我我做错了什么或如何实现我想要做的事情?
【问题讨论】:
标签: spring-integration spring-ws