code: private void captureSoapXml(SOAPMessageContext context) {
      SOAPMessage message = context.getMessage();
      if ((Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY)) {
        // Outbound message (request).
        requestInfoXPathSet.parseMessage(lastRequestInfo, message);
      } else {
        // Inbound message (response).
        responseInfoXPathSet.parseMessage(lastResponseInfo, message);
      }
    }
docs: Captures the raw XML message behind a SOAP interaction.
  
  @param context the context of the SOAP message passing through this handler