Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from("timer:mytimer?fixedRate=true&period=1m")
- .setBody().constant(getMessageBody())
- .to("cxf://http://www.webservicex.net/stockquote.asmx?"
- + "wsdlURL=http://www.webservicex.net/stockquote.asmx?WSDL&"
- + "serviceName={http://www.webserviceX.NET/}StockQuote&"
- + "portName={http://www.webserviceX.NET/}StockQuoteSoap&"
- + "dataFormat=PAYLOAD&"
- + "operationName=GetStockquote")
- .log(LoggingLevel.INFO,"${body}");
- ;
- }
- private String getMessageBody() {
- return "<web:GetQuote xmlns:web=\"http://www.webserviceX.NET/\">\n" +
- "<web:symbol>Microsoft</web:symbol>\n" +
- "</web:GetQuote>\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement