code: protected void logSoapMessage(String logMessage, SoapMessage soapMessage, boolean incoming) throws TransformerException {
          Transformer transformer = createIndentingTransformer();
          StringWriter writer = new StringWriter();
          
          transformer.transform(soapMessage.getEnvelope().getSource(), new StreamResult(writer));
          logMessage(logMessage, XMLUtils.prettyPrint(writer.toString()), incoming);
      }
docs: Log SOAP message with transformer instance.
  
  @param logMessage the customized log message.
  @param soapMessage the message content as SOAP envelope source.
  @param incoming
  @throws TransformerException