I currently have a custom processor setup within a route that does the
following


public class SoapFaultDetectionProcessor implements Processor {

        public void process(Exchange exchange) throws Exception {
                if(exchange.getIn().isFault()) {
                        SoapFault fault = 
exchange.getIn().getBody(SoapFault.class);
                System.out.println(fault.getMessage());
                }
        }
}

This processor immediately follows a CXF Producer in POJO mode.  I am having
the service generate a soap fault, but for some reason the isFault() call
always remains false.  

1) Am I not using this properly or
2) Is there a better way to capture and manipulate / display SOAP faults
(for logging purposes and such)

--
View this message in context: 
http://camel.465427.n5.nabble.com/Detecting-SOAP-Faults-tp5618665p5618665.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to