[ https://issues.apache.org/activemq/browse/CAMEL-3033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Savas Ali Tokmen updated CAMEL-3033: ------------------------------------ Attachment: camel-3033_webfault_annotated_exception_to_soapfault_with_jaxws_endpoint_test.patch Hello Willem Of course you're right, this approach will also avoid touching test classes unnecessarily. Attaching new patch, with therefore only the modified CxfConsumer and the new test that uses org.apache.cxf.greeter_control.Greeter that throws an org.apache.cxf.greeter_control.PingMeFault. The test of course does not pass if you do not patch CxfConsumer. Cheers > @WebFault interceptor to map exceptions to faults > ------------------------------------------------- > > Key: CAMEL-3033 > URL: https://issues.apache.org/activemq/browse/CAMEL-3033 > Project: Apache Camel > Issue Type: New Feature > Components: camel-core > Reporter: Claus Ibsen > Priority: Minor > Fix For: Future > > Attachments: > camel-3033_webfault_annotated_exception_to_soapfault_with_jaxws_endpoint_test.patch, > camel-3033_webfault_annotated_exception_to_soapfault_with_test.patch > > > Like the {{HandleFaultInterceptor}} which turns fault -> exception, we should > offer the reverse. > The @WebFault is a standard annotation. The interceptor should then > introspect the thrown exception and see if its annotated with @WebFault. If > so it should turn the exception into a fault message. > See nabble > http://camel.465427.n5.nabble.com/CXF-consumer-fault-handling-tp2264078p2264078.html > It should be possible to include in camel-core as annotations jars is > optional. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.