I need get data from csv file and then post it to a external restful service.
My route is like this from("file:data/inbox/?fileName=sample.csv&noop=true"). unmarshal().csv() .split(body()) .bean(new MyBean()) .setHeader(Exchange.HTTP_METHOD, constant("POST")) .to("http://server/RestService/service/show/1"); I got the error org.apache.camel.InvalidPayloadException: No body available of type: java.io.InputStream but has value: my.exampl.MyBean@7df60a What should I do ??? Thanks, -- View this message in context: http://camel.465427.n5.nabble.com/How-to-post-to-restful-service-in-camel-routes-tp5714698.html Sent from the Camel - Users mailing list archive at Nabble.com.