I changed the route up slightly: <route> <from uri="file:\\localhost\FTPLand"/> *<convertBodyTo type="String"/>* <setHeader headerName="CamelHttpMethod"> <constant>POST</constant> </setHeader> <to uri="cxfrs:http://localhost/s/restservice?httpClientAPI=true" pattern="InOut"/> <to uri="log:response"/> </route>
Exception received: org.apache.camel.component.cxf.CxfOperationException: JAXRS operation failed invoking file://\\localhost\FTPLand\ with statusCode: 307, redirectLocation: http://localhost/s/restservice/ -- View this message in context: http://camel.465427.n5.nabble.com/XML-file-posting-to-Rest-Service-example-tp5713353p5713491.html Sent from the Camel - Users mailing list archive at Nabble.com.