I should also show:

        public VlsCxfSoapFaultInInterceptor(String s) {
                super(Phase.POST_STREAM);
        }
        public void handleMessage(Message message) throws Fault {
                LOGGER.debug(" :: handleMessage invoked");
                handleMessageCalled = false;
                
                if 
(message.getExchange().get("org.apache.cxf.systest.for-out-fault-interceptor") 
== null) {
                        return;
                }
                handleMessageCalled = true;
                
                Exception ex = message.getContent(Exception.class);
                if (ex == null) {
                        throw new RuntimeException("Exception is expected");
                }
                if (!(ex instanceof Fault)) {
                        throw new RuntimeException("Fault is expected");
                }

Which I got from an example class; however, when my in-bound fault is 
processed, none of the first three if() statements return true. 

-----Original Message-----
From: Morein, Arnie [mailto:[email protected]] 
Sent: Wednesday, March 21, 2018 3:06 PM
To: [email protected]
Subject: XML of Fault?

CAUTION: This email was received from an EXTERNAL source, use caution when 
clicking links or opening attachments.

If you believe this to be a malicious and/or phishing email, please send this 
email as an attachment to [email protected].

Does anyone have an example of a fault in/out interceptor that accesses the 
underlying XML?

I cannot figure how out to access.

Using CXF  3.1.10.

Reply via email to