Hi Doug Douglass, Your suggeston worked. Thanks a lot. Now my working code look like this
.post().consumes("text/plain") .type(String.class) .produces("text/plain") .outType(String.class) .to("direct:multicastdemo") .description("Service to submit a new Orderr").responseMessage() .code(200).message("Ack or NoAck").endResponseMessage() .responseMessage().code(400).message("Invalid input data").endResponseMessage() .responseMessage().code(500).message("Server error").endResponseMessage(); from("direct:multicastdemo").multicast().to("direct:mainBody","bean:routingService?method=returnMessage"); from("direct:mainBody").streamCaching() .tracing().routeId("stax-parser") .log("Content of the pau in the main route: ${body}") .to("stax:com.passer.handler.UserStoryXMLSaxHandler") .transform().method("routingService", "createRoutingResponse") .log("After processing : ${body} ") .end(); -- View this message in context: http://camel.465427.n5.nabble.com/Re-Rest-to-Stax-not-working-tp5783806p5783912.html Sent from the Camel - Users mailing list archive at Nabble.com.