*
* @param soapCallReturn information on the SOAP call to be logged
*/
public void logSoapXml(SoapCallReturn soapCallReturn) {
RequestInfo request = soapCallReturn.getRequestInfo();
ResponseInfo response = soapCallReturn.getResponseInfo();
if (soapXmlLogger.isInfoEnabled() ||
(soapXmlLogger.isWarnEnabled() && soapCallReturn.getException() != null)) {
String prettyRequest = "SOAP Request:\n" +
prettyPrinter.prettyPrint(request.getSoapRequestXml());
String prettyResponse = "SOAP Response:\n" +
prettyPrinter.prettyPrint(response.getSoapResponseXml());
if (soapCallReturn.getException() == null) {
soapXmlLogger.info(prettyRequest);
soapXmlLogger.info(prettyResponse);
} else {
soapXmlLogger.warn(prettyRequest);