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.

Reply via email to