Remik
Remik

Reputation: 31

Spring Soap client - get raw response

I created a Soap client using Spring tutorial: https://spring.io/guides/gs/consuming-web-service/

It works fine using the Java objects.

I wonder if there's a way I could obtain response (the payload, preferably without SOAP wrapper) as it is send by the service?

Thanks

Upvotes: 2

Views: 825

Answers (1)

JArgente
JArgente

Reputation: 2297

You can see the request you send to the SOAP service and the response the service returns in your log application adding this property to your application.properties

logging.level.org.springframework.ws=TRACE

or this one if you are using application.yaml

logging:
  level:
    org:
      springframework:
        ws: TRACE

Upvotes: 1

Related Questions