title: How to send additional fields to soap handler along with soapMessage?
body: <p>I am logging RequestXML for a webservice client using SoapHandler as follows</p>
  
  <pre><code>public boolean handleMessage(SOAPMessageContext smc) {
      logToSystemOut(smc);
      return true;
  }
  
  
  private void logToSystemOut(SOAPMessageContext smc) {
       Boolean outboundProperty = (Boolean)
       smc.get (MessageContext.MESSAGE_OUTBOUND_PROPERTY);
  
      if (outboundProperty.booleanValue()) {
          out.println("\nOutbound message:");
      } else {
          out.println("\nInbound message:");
      }
  
      SOAPMessage message = smc.getMessage();
      try {
          message.writeTo(out);
          out.println("");   
          } catch (Exception e) {
          out.println("Exception in handler: " + e);
      }
  } 
  </code></pre>
  
  <p>Got a new requirenment to add this xml to DB along with some extra values(which are not present in the xml). Is there any way I can pass few additional fields to above soap handler (in handleMessage method)? </p>
  
  <p>Please note that changing the xml/WSDL or adding this to SOAP message header is not an option for me as it is owned by other interface. Any other solution?</p>
  
  <p>Thanks!</p>