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 ) ; }
Log SOAP message with transformer instance .