The behavior differs depending on the configuration. I'll try to give a short overview.
If you have a request-response type service, the exception is normally transferred to the caller. In that case, the corresponding soap fault is returned to the caller and the http code is 500 for such general server-side runtine errors. For some other specific exceptions like authorization etc, the code can be 4xx by conforming to the standard. If you have a oneway type service, the exception is not normally transferred back to the caller. A oneway service assumes an asynchronous processing by default.. So, the exception thrown somewhere in one processing segment will be handled in that segment and the preceding segments will not see the exception. If you have a oneway type service but want to get the soap fault at your client, you need to enforce the synchronous behavior from your client up to the point where this exception might occur. That means, for instance, you need to set the synchronous flag and additionally set the "org.apache.cxf.oneway.robust" property to true at the cxf endpoint. regards, aki 2012/12/12 helander <leh...@gmail.com>: > I have a solution based on camel-cxf, where soap requests are received by a > cxf-endpoint and processed by a camel route that ends with a jms endpoint. > At the other end of the jms-"connection" is the actual service > implementation, that will create the soap response and send it back to the > jms-endpoint and further to the cxf-endpoint. All of this his deployed in a > Karaf container using its standard web server (pax-web). > > I have tried to find documentation of what kind of errors that are detected > by the involved components and what kind of errors that get reported (and > how) for each type of error. > > I am looking for anything that could help getting a clearer view on this: > > What kind of HTTP error codes (4xx, 5xx) are reported and what component > detects/reports this? > Are SOAP faults generated? When? What component detects/reports this? > > Thanks > > Lars > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Error-handling-when-using-camel-cxf-tp5723955.html > Sent from the Camel - Users mailing list archive at Nabble.com.