FYI, the exception I'm encountering is:

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
       at java.util.LinkedList.checkElementIndex(LinkedList.java:555) 
~[?:1.8.0_172]
       at java.util.LinkedList.remove(LinkedList.java:525) ~[?:1.8.0_172]
       at 
org.apache.cxf.staxutils.OverlayW3CDOMStreamWriter.writeEndElement(OverlayW3CDOMStreamWriter.java:89)
 ~[cxf-core-3.1.15.jar:3.1.15]


From: Morein, Arnie
Sent: Tuesday, June 19, 2018 11:38 AM
To: [email protected]
Subject: Help with SOAP XML Logging

I need to create four interceptor ancestor classes to log the SOAP XML of an 
inbound or outbound message to the database.

I've seen examples and some work to a point but mostly I'm just confused.

I need clarification as to which phase to write them for:

WS client outbound: ? POST_MARSHAL or MARSHAL_ENDING ?
WS client inbound: ? POST_PROTOCOL_ENDING or UNMARSHAL ?

WS server inbound: ? PROTOCOL_ENDING ?
WS server outbound: ? PROTOCOL ?

One of the examples I got off the CXF site seems to work for client code (my 
application consuming a web service) but when I created a new descendent for 
another client, an exception occurs deep inside stax code.

This line: SOAPMessage saaj = message.getContent(SOAPMessage.class); frequently 
returns nothing. Why?


Reply via email to