Ok. Found out the issue. AM sending plain text data, but my rest service is
parsing it as JSON and was showing empty JSON

So just make sure these two

1. In camel, add Content-Type
*.setHeader(Exchange.CONTENT_TYPE,constant("text/html"))                        
         *

2. In your Rest service accept *text/html*



--
View this message in context: 
http://camel.465427.n5.nabble.com/Request-body-is-empty-in-HTTP-Endpoint-tp5766738p5766742.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to