Hi

Which version of Camel are you using?
If you are using Camel 2.x
You can set the content-type like this

<route>
<from uri="direct:testEndpoint"/>
<to uri="direct:testEndpoint2"/>
<setOutHeader headerName="Content-Type">
        <constant>application/xml</constant>
</setOutHeader>

<transform>
     <simple><tag> ${body} </tag></simple>
</transform>
</route>

Willem

jejmaster wrote:
Hi,

I would like to ask on how to set the content-type header into the camel
route with transform method.

<route>
<from uri="direct:testEndpoint"/>
<to uri="direct:testEndpoint2"/>
<transform>
     <simple><tag> ${body} </tag></simple>
</transform>
</route>

How will I set the content-type header to application/xml ?

Thank you in advance.



Reply via email to