Spring integration Spring集成Webservice网关:添加http头作为SOAP头
我试图编写并配置一个Spring入站Webservice网关,它应该接收完整的SOAP消息,然后将其委托给另一个SOAP提供者(出于安全原因,这是必要的)。 应该像 (1) 应用程序->(2)SOAP提供者和客户端(这是我的部分/配置)->(3)第二个SOAP提供者->(4)服务 到目前为止,我在第(2)问题上所做的工作: 1) web.xmlSpring integration Spring集成Webservice网关:添加http头作为SOAP头,spring-integration,saaj,Spring Integration,Saaj,我试图编写并配置一个Spring入站Webservice网关,它应该接收完整的SOAP消息,然后将其委托给另一个SOAP提供者(出于安全原因,这是必要的)。 应该像 (1) 应用程序->(2)SOAP提供者和客户端(这是我的部分/配置)->(3)第二个SOAP提供者->(4)服务 到目前为止,我在第(2)问题上所做的工作: 1) web.xml MessageDispatcherServlet与映射: 春季天气预报 /应用服务/* 2) 具有端点映射的配置 <bean class="or
MessageDispatcherServlet与映射:
春季天气预报
/应用服务/*
2) 具有端点映射的配置
<bean class="org.springframework.ws.server.endpoint.mapping.UriEndpointMapping">
<property name="defaultEndpoint" ref="ws-in-gw"/>
</bean>
3) Spring集成入站网关和出站网关的配置
<!-- My Providing Part -->
<int-ws:inbound-gateway id="ws-in-gw"
request-channel="in"
reply-channel="out"
mapped-request-headers="*" />
<int:channel id="in" />
<int:channel id="out" />
<!-- My Client Part -->
<int-ws:outbound-gateway
id="ws-out-gw-status"
request-channel="in-status"
reply-channel="out-status"
uri="http://${delegationServer}/${delegation.contextroot}/soap/AnotherService"
</int-ws:outbound-gateway>
请说得具体一点。是否要将传入的HTTP头也作为HTTP头传输到该外部请求,还是要将其填充为
?抱歉。。。我想把它们改成soapenv:校长对不起,耽搁了。请尝试遵循以下建议:
<!-- My Providing Part -->
<int-ws:inbound-gateway id="ws-in-gw"
request-channel="in"
reply-channel="out"
mapped-request-headers="*" />
<int:channel id="in" />
<int:channel id="out" />
<!-- My Client Part -->
<int-ws:outbound-gateway
id="ws-out-gw-status"
request-channel="in-status"
reply-channel="out-status"
uri="http://${delegationServer}/${delegation.contextroot}/soap/AnotherService"
</int-ws:outbound-gateway>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:stat="http://status.service.promakler.provinzial.com/">
<soapenv:Body>
<stat:getStatus/>
</soapenv:Body>
</soapenv:Envelope>