How to add a file as attachment in Spring integraion Webservices outbound gateway -
I have a spring integration outbound gateway for web pages. By this time, I send a request in the XML format for web services . Now, I need to send a file as part of the request for web service. How do I do this? The bottom spring integration chain is the current configuration:
& Lt; -; Integer This Spring Integration Series uses the first service name and headers of the service for the spring unity message called Operation Header: Header-Enricher & gt; & Lt; Int: header name = "# {XXXXXXXXX}" value = "test search" /> & Lt; Int: header name = "# {XXXXXX}" value = "searchbeatfastdifference" /> & Lt; / Integer: Header-Enricher & gt; & Lt ;! - WS Outbound gateway is used to make outgoing SOAP calls - & gt; & Lt; Integer-ws: Outbound-gateway id = "simpleGateway" destination provider = "testDestinationProvider" message-this = "testHttpsMessageSender" interceptor = "test_wss4jInterceptor" title-maper = "testSoapHeaderMapper" /> & Lt ;! - Set transformer for output message - & gt; & Lt; Int: Transformer Method = "Conversion" ref = "Test Response Exporter" /> & Lt; / Integer: Series & gt;
For Spring WS project, please take a look, please.
Since spring solidarity WS module is fully based on spring WS, I think that the difference between the cap difference to create JAXB object with attachements in the form of the message payload more
marshaller
injection
We have one open on this matter, but I do not need enough time. See what we should do there.
I just have to increase the capacity of MTOM in spring unity to increase one for the spring solidarity sampling.
Comments
Post a Comment