Hi, I think Charles already show you how to do it by using setBody DSL. BTW, if you using direct:start, you need to use producer template to send the message to the direct:start endpoint to kick the route.
-- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On October 9, 2014 at 5:16:29 AM, camelcoder07 (dmhu...@hotmail.com) wrote: > I fixed this issue now by using a timer instead of direct:start. > > Can anyone tell me how to set the body type to application/json when sending > the data to the web service? > > Thank you > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-Spring-HTTP-Consumer-using-remote-Rest-web-service-tp5757395p5757420.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >