title: SoapHandler not called after WS operation is executed
body: <p>I have a servlet that also consumes SOAP WS (in doGet). I want to see SOAP envelope (or anything else in soap message). I adddd this code to my servlet class:</p>
  
  <pre><code>class ClientHandlerResolver implements HandlerResolver {
      public List&lt;Handler&gt; getHandlerChain(PortInfo port_info) {
          List&lt;Handler&gt; hchain = new ArrayList&lt;Handler&gt;();
          hchain.add(new TestHandler()); //  soap handler defined in TestHandler.java dumps messages to stdout
          return hchain;
      }
  }
  </code></pre>
  
  <p>I a separate class, i have my TestHandler:</p>
  
  <pre><code>public class TestHandler implements SOAPHandler&lt;SOAPMessageContext&gt; {
  private static final String LoggerName = "ClientSideLogger";
  private Logger logger;
  private final boolean log_p = true; // set to false to turn off 
  
  public TestHandler() { 
  logger = Logger.getLogger(LoggerName);
   }
  
  public boolean handleMessage(SOAPMessageContext ctx) {
  if (log_p) 
      logger.info("Test::handleMessage"); 
  
  // Is this an outbound message, i.e., a request?
  Boolean request_p = (Boolean)
        ctx.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
  
  // Manipulate the SOAP only if it's a request
    if (request_p) {
      try {
          SOAPMessage msg = ctx.getMessage(); 
          msg.writeTo(System.out);
  
      }
      catch(SOAPException e) 
      { System.err.println(e); 
      }
      catch(IOException e) 
      { System.err.println(e); 
      }
  }
    return true; // continue down the chain
  </code></pre>
  
  <p>}</p>
  
  <pre><code>public boolean handleFault(SOAPMessageContext ctx) {
    return true; 
  </code></pre>
  
  <p>}</p>
  
  <pre><code>public Set&lt;QName&gt; getHeaders() { 
  if (log_p)
      logger.info("getHeaders");
  return null;
  </code></pre>
  
  <p>}     </p>
  
  <pre><code>public void close(MessageContext messageContext) { 
  if (log_p)
      logger.info("close");
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Nothing is printed out when i make WS request. I don't even know if handler is called. </p>
  
  <p>How to see printouts defined in Handler? </p>