Thanks for the useful info. I was trying to create a route that dynamically
generates filename based on attributes in xml and this post helped.
Below is the route that worked for me:
<from uri="mdw:REST/REST"/> 
 <setHeader
headerName="OrderNumber"><xpath>/Envelope/Header/text()</xpath></setHeader>
<to uri="file:data/inbox?fileName=${header.OrderNumber}.xml" pattern="InOut"
/>

This reads request coming to a REST webservice endpoint, parses value in
Header element and uses it to create dynamic file name.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Splitter-file-name-automatic-generation-tp4754576p5765825.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to