Thursday, August 2, 2012

Logging of messages sent with Spring WS client

When sending messages with Spring WS client, observing of actual sent and received messages is often required. To set the logging level, add the following lines in

Here's what you might observe in the logs:

2012-08-02 12:31:49,615 TRACE [] - Sent request [<SOAP-ENV:Envelope...
2012-08-02 12:31:50,581 TRACE [] - Received response [<env:Envelope

For more info about message logging see this chapter of the excellent Spring WS documentation.

No comments:

Post a Comment