Hi,
i just try to write a xml result from a http request to a file.
I'd like to use Java DSL
at the moment it looks like this

 from("http://example.com/";)
        .setHeader(Exchange.FILE_NAME, constant("report.xml"))
        .to("file:target/reports");

I alreday checked the result, and there is one, but the report.xml never
gets created.
What am i doing wrong?

Regards...

-- 
View this message in context: 
http://old.nabble.com/route-from-http-to-file%2C-with-Java-DSL%2C-howto--tp27997011p27997011.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to