Hello, We have a question about attachments & HTTP & Spring. May be anyone knows a solution. We're using the below camel configuration. The direct:Test is called with XML message and some attachments. The XML is transformed and than send trough HTTP (the HTTP should not receive the attachments) After the HTTP call the attachments are no longer available The next call is sends a MTOM message through Spring-WS and here the attachment should be send but after the HTTP call the attachment are no longer available.
Currently the solution is to make two camel calls (direct:Test) which does the HTTP call and a new camel route direct:Test2 which does the spring-ws call. In the future more complex integration is necessary and it would be nice if it could be done within one camel route. Is there another solution? <camel:route id="direct:Test"> <camel:from uri="direct:Test" /> <camel:setHeader headerName="attachment"> <camel:xpath resultType="java.lang.String">//*[local-name()='Include']/@href</camel:xpath> </camel:setHeader> <camel:to uri="xslt://test.xsl"/> <camel:to uri="http://acme.com"/> <camel:to uri="xslt://test2.xsl"/> <camel:to uri="spring-ws:http://localhost:18081/mySoapService?messageFactory=#mtomAxiomMessageFactory&messageFilter=#soap11MTOMMessageFilter" /> </camel:route> Kind regards, Richard -- View this message in context: http://camel.465427.n5.nabble.com/Attachment-multiple-components-tp5783763.html Sent from the Camel - Users mailing list archive at Nabble.com.