Hi, I am having a lot of trouble configuring my Camel CXF route to handle
SOAPFaults itself instead of letting CXF handle them. In order to achieve
this, I have read various online documentation and posts but I have yet to
be able to handle these faults/exceptions in my code.

For my service:
- I have set <camelContext handleFault="true" />.
- I have specified an onException(Exception.class)... in my service's route
configure() method.
- I have set the entry point into the service's route as:
from("cxf:/AService?dataFormat=PAYLOAD").

Yet, every time I run a test to purposely force a SoapFault through, it only
ever gets handled in the CXF PhaseInterceptorChain and not passed through to
my own fault handling code.

Can anybody give me some guidance on what I am missing, or point me to a
running example project which does exactly this so I can compare configs
against mine?

My service is using camel-cxf-2.12.2 APIs and cxf-api-2.7.11 APIs.

Thanks in advance for any help on this, PM.



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-Register-a-Default-Soap-Fault-Handler-in-Camel-tp3556065p5750958.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to