I created an implementation of LoggingHandler that implements SOAPHandler
It should log whenever handleMess
If anyone is wondering the 'why' of @EugeneP excellent answer.
In the Interface javax.xml.ws.Binding, there is the following comment.
/**
* Gets a copy of the handler chain for a protocol binding instance.
* If the returned chain is modified a call to
setHandlerChain
* is required to configure the binding instance with the new chain.
*
* @return java.util.List<Handler> Handler chain
*/
public java.util.List getHandlerChain();
So the getHandlerChain() method returns a copy of the List not the list itself. So you have to use setHandlerChain to update the actual List.