Results 1 to 6 of 6

Thread: Displaying request and response in debug logging mode

  1. #1

    Default 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. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    You should set your log level to TRACE, rather than DEBUG.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #3

    Default

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

    Default

    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. #5
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    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.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  6. #6

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •