1
我有一個Web服務的彈簧集成出站網關。直到這一次,我以xml格式將請求發送到Web服務。 現在,我需要將文件作爲請求的一部分發送到Web服務。 我該怎麼做? 下面是春季鏈整合現有的配置:如何在Spring integraion中添加一個文件作爲附件Web服務出站網關
<!-- Chain to Process requests for XXXXX-->
<int:chain id="psTestChain" input-channel="psTestInputChannel" >
<!-- Set up transformer for input message -->
<int:transformer method="transform" ref="testRequestXformer"/>
<!-- This Spring Integration chain first adds the service name and the
service operation headers to the Spring Integration message using the header
<int:header-enricher>
<int:header name="#{XXXXXXXXX}"
value="TestSearch" />
<int:header
name="#{XXXXXX}"
value="searchByTestIdentifier" />
</int:header-enricher>
<!-- The WS outbound gateway is used to make an outgoing SOAP call. -->
<int-ws:outbound-gateway id="simpleGateway"
destination-provider="testDestinationProvider"
message-sender="testHttpsMessageSender"
interceptor="test_wss4jInterceptor"
header-mapper="testSoapHeaderMapper"/>
<!-- Set up transformer for output message -->
<int:transformer method="transform" ref="testResponseXformer"/>
</int:chain>