diff --git a/connectors/soap/src/main/java/io/camunda/connectors/soap/SoapConnector.java b/connectors/soap/src/main/java/io/camunda/connectors/soap/SoapConnector.java index a90d319da9..18cf43af5f 100644 --- a/connectors/soap/src/main/java/io/camunda/connectors/soap/SoapConnector.java +++ b/connectors/soap/src/main/java/io/camunda/connectors/soap/SoapConnector.java @@ -91,7 +91,6 @@ public Object execute(OutboundConnectorContext context) throws Exception { .withPreserveNamespaces(false) .build() .toJson(XmlUtilities.xmlStringToDocument(soapResponseMessage)); - LOG.debug("Response to connector runtime: \n{}", response.toPrettyString()); return response; } catch (WebServiceException e) { if (e instanceof SoapFaultClientException soapFaultClientException) { diff --git a/connectors/soap/src/main/java/io/camunda/connectors/soap/client/LoggingInterceptor.java b/connectors/soap/src/main/java/io/camunda/connectors/soap/client/LoggingInterceptor.java deleted file mode 100644 index 411f57d9bf..0000000000 --- a/connectors/soap/src/main/java/io/camunda/connectors/soap/client/LoggingInterceptor.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH - * under one or more contributor license agreements. Licensed under a proprietary license. - * See the License.txt file for more information. You may not use this file - * except in compliance with the proprietary license. - */ -package io.camunda.connectors.soap.client; - -import io.camunda.connectors.soap.xml.XmlUtilities; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.ws.client.WebServiceClientException; -import org.springframework.ws.client.support.interceptor.ClientInterceptor; -import org.springframework.ws.context.MessageContext; -import org.springframework.ws.soap.SoapMessage; - -public class LoggingInterceptor implements ClientInterceptor { - private static final Logger LOG = LoggerFactory.getLogger(LoggingInterceptor.class); - - @Override - public boolean handleRequest(MessageContext messageContext) throws WebServiceClientException { - if (messageContext.getRequest() instanceof SoapMessage soapMessage) { - String document = XmlUtilities.xmlDocumentToString(soapMessage.getDocument(), false, true); - LOG.debug("Request: \n{}", document); - } - return true; - } - - @Override - public boolean handleResponse(MessageContext messageContext) throws WebServiceClientException { - if (messageContext.getResponse() instanceof SoapMessage soapMessage) { - String document = XmlUtilities.xmlDocumentToString(soapMessage.getDocument(), false, true); - LOG.debug("Response: \n{}", document); - } - return true; - } - - @Override - public boolean handleFault(MessageContext messageContext) throws WebServiceClientException { - return true; - } - - @Override - public void afterCompletion(MessageContext messageContext, Exception ex) - throws WebServiceClientException {} -} diff --git a/connectors/soap/src/main/java/io/camunda/connectors/soap/client/SpringSoapClient.java b/connectors/soap/src/main/java/io/camunda/connectors/soap/client/SpringSoapClient.java index 00b0599390..2707d7b26f 100644 --- a/connectors/soap/src/main/java/io/camunda/connectors/soap/client/SpringSoapClient.java +++ b/connectors/soap/src/main/java/io/camunda/connectors/soap/client/SpringSoapClient.java @@ -138,7 +138,6 @@ private ClientInterceptor[] buildInterceptors( List interceptorList = new ArrayList<>(); handleAuthentication(authentication).ifPresent(interceptorList::add); handleSoapHeader(soapHeader, namespaces).ifPresent(interceptorList::add); - interceptorList.add(new LoggingInterceptor()); return interceptorList.toArray(new ClientInterceptor[0]); }