Announcement Announcement Module
Collapse
No announcement yet.
Displaying request and response in debug logging mode Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Displaying request and response in debug logging mode

    Hi,

    Until now, when I put logging in debug mode, Spring-WS would display the request and response xml. Suddenly, it doen't anymore. Now, it displays something like :

    Received response [SaajSoapMessage {http://www.acme.com/MYWS}myOperation_out] for request [SaajSoapMessage {http://www.acme.com/MYWS}myOperation]

    Does anyone has an idea about how to get it display the full xml request and response again ?

  • #2
    You should set your log level to TRACE, rather than DEBUG.

    Comment


    • #3
      Thanks for the advice, but it doesn't change anything. I never used TRACE before, and I am absolutely sure Spring WS was displaying the XML request and response when in DEBUG mode. It has now changed, and I do not now why. It's rather confusing !

      Comment


      • #4
        After investigating, I found that TRACE level in log4j is only enabled if threshold="all" is used in the configuration element. So the problem is solved.

        However, I am absolutely sure I had the complete request and response displayed in DEBUG mode until few days ago ! The same is true with Castor marshalling. Strange !

        Comment


        • #5
          Log4j introduced the TRACE level only recently. As such, some older implementations of commons logging are not aware of it. Make sure you use commons logging 1.1 or higher.

          Comment


          • #6
            Thank you very much. It's working fine now !

            Comment

            Working...
            X