This can be done by changing the @PathParam to @FormParam and using
URLEncoded.
Hope this helps others.
Thanks,
Sayed
--
View this message in context:
http://camel.465427.n5.nabble.com/Unable-to-send-the-POST-parameters-value-for-REST-Service-tp5757760p5757944.html
Sent from the Camel -
Hello,
Following the sample code below works perfectly fine for REST GET method,
But the POST method always inserts the null record,
Can any one please suggest me in case of any change required.
Route Builder:
public void configure() throws Exception {
You need to map the post Body into the message header, as the SimpleConsumer[1]
just put the request body into the message body.
[1]https://camel.apache.org/cxfrs#CXFRS-ConsumingaRESTRequest-SimpleBindingStyle
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: