How to Override Client Side Soap Logging - Spring Boot

Viewed 2685

I'm consuming a soap webservice inside a spring boot application. The response/request logging is too big, because of one attribute which is too large. So I want to intercept that logging and remove the offending attribute.

I've been messing about with SoapEnvelopeLoggingInterceptor, but i think that is just for Server side logging. It will not get picked up.

I have configured my soap logging inside yml as follows:

logging:
  pattern:
    ...
  level:
    ...
    org.springframework.ws.client.MessageTracing.sent: TRACE
    org.springframework.ws.client.MessageTracing.received: TRACE
    org.springframework.ws.server.MessageTracing: DEBUG

That works fine for logging both request and response, but I need to remove a very large problematic attribute from the envelope. Any ideas?

2 Answers
Related