I have solved the mentioned issue using http component and Rest @RequestBody,

*Route:*
<simple>${body}</simple>
<marshal ref="jsonObjectRef"/> 
<setHeader headerName="Content-Type">
<constant>application/json; charset=UTF-8</constant>
</setHeader>
<convertBodyTo type="java.lang.String"/>
<setBody>
<simple>${body}</simple>
</setBody>
<to uri="http:localhost:8080/service"/>

*My service will be like,*
@RequestMapping(value="/service",consumes="application/json", method =
{RequestMethod.POST, RequestMethod.GET})
public @ResponseBody String basicRule(@RequestBody MYVO myVO)

I am able to pass the request data without encoding issue. 
I'm not sure if this is a better way to do it, if someone feels there is a
better approach please advise.

Thanks,
Vinoth.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Http-Component-tp5781196p5781299.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to