On Jun 25, 2014, at 12:44 PM, Frizz wrote:
> I have a custom interceptor. In case the SoapMessage is an Exception, I'd
> like to skip all my other interceptors and return a SOAP Fault.
Where in the chain is your interceptor? If it’s on the incoming chain, just
throw a org.apache.cxf.intercep
tor = chainIterator.next();
chain.remove( interceptor );
}
--
View this message in context:
http://cxf.547215.n5.nabble.com/Return-SOAP-Fault-in-CXF-Interceptor-tp5745578p5745582.html
Sent from the cxf-user mailing list archive at Nabble.com.
I have a custom interceptor. In case the SoapMessage is an Exception, I'd
like to skip all my other interceptors and return a SOAP Fault.
public void handleMessage(SoapMessage message)
...
if (message.getContent(Exception.class)!=null) {
skip other interceptors and return SOAP Fault
}
...
Is