What’s web service look like? You need to grab the WSDL, generate the SEI from WSDL by using CXF wsdl2java tool, and then setup the CxfEndpoint as document I showed you. If you are new to invoke the web service by using Java, you may need to google some example first.
-- 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 June 27, 2014 at 12:29:24 AM, Rick (rick0...@hotmail.co.uk) wrote: > Thanks for the replies guys - sorry it has taken me so long to come back to > you on this but I amslowly making my way through this. > > I have made some headway in dealing with data that comes in as the XML file > and that seems to work, basically I have unmarshalled the file into a > processor so that I can access the file contents. > > Having looked more the web service I am trying to use it would appear that > it uses SOAP pass the message on so I have been having a look at the code > examples from that > > So far the confgure section of the routebuilder method looks like this > > > from("file://c:///junk///cameltest").unmarshal().jaxb(Message.class.getPackage().getName().toString()) > > .process(new Processor(){ > public void process(Exchange exchange)throws Exception{ > Message message = (Message) exchange.getIn().getBody(); > System.out.println("From: > "+message.getFrom().getName()); > System.out.println("To : > "+message.getRecipients().getTo().getDeviceAddress()); > System.out.println("Content : "+message.getContent()); > > } > }); > > } > > Just a bit unsure now how to set up the SOAP url and pass the contents of > the message on to it > > R > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/New-to-Camel-and-also-needing-to-come-up-to-speed-on-Java-again-tp5752662p5752878.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >