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

  • Displaying request and response in debug logging mode


    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 {}myOperation_out] for request [SaajSoapMessage {}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.


    • #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 !


      • #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 !


        • #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.


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