You can user camel-jetty component to build up a proxy for you. It just redirect the request( it could be GET request or POST request) to the back end service, the request body can be send the back end service as well.
-- 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 May 4, 2014 at 9:15:21 PM, Stephen Cameron ([email protected]) wrote: > Hi, > > I thought to try doing a simple HTTP POST to a web-service using Camel. > > My understanding is that this is a Jetty endpoint acting as a Consumer, I > simply pass the URL of the webservice to getting and process the response > as the start of my route. > > But how can I do a POST and set the body of the request that Jetty sends to > the (producer) web-service to be the content of an XML file? > > [This relates to my previous issue with CXF, I was hoping to sidestep CXF > for a brief moment, but nothing is simple] >
