Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Return SOAP Fault in CXF Interceptor

$
0
0
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 this possible? Or do I have to put some logic in each and every one of
my interceptors?

Viewing all articles
Browse latest Browse all 5648

Trending Articles