RE: exception handling in karaf differs to my test

2017-09-05 Thread Matthew Shaw
Thanks Mary, yes I did separate it from routing logic and it has fixed my issue, cheers. -Original Message- From: Mary Cochran [mailto:mcoch...@redhat.com] Sent: Wednesday, 6 September 2017 8:03 AM To: users@camel.apache.org Subject: Re: exception handling in karaf differs to my test Ha

Re: exception handling in karaf differs to my test

2017-09-05 Thread Mary Cochran
Have you tried keeping the onException section disconnected from your original route and placing it above the route. So more like this? onException(SoapFault.class).handled(true) .process(new Processor() { @Override public void process(Exchange exchange) throws Except

Re: Consuming Web Services

2017-09-05 Thread Mary Cochran
If you want to go a non-CXF route and are using Rest the Rest DSL can be very useful. Depending on where you are deploying these example may be helpful: https://github.com/rhtconsulting/fuse-quickstarts/tree/jboss-fuse-6.3/karaf/rest_dsl https://github.com/rhtconsulting/fuse-quickstarts/tree/jbos

RE: Consuming Web Services

2017-09-05 Thread Matthew Shaw
Hi Carlos, There are a number of camel components to use for consuming web services, I assume you mean SOAP, although the url does not look SOAP like, do you require REST? Either way, I've been using the camel cxf component. Step1: Create a CxfEndpoint in your camel route like the following:

Consuming Web Services

2017-09-05 Thread Carlos Cruz
I'm new to Camel, I'm evaluating it to see if I can use it for a new application. I'm trying to consume a web service like : as url.com/account/login?USERNAME=username&PASSWORD=password A string with a session ID is returned which I need to assign to a variable. My question is which component w