Announcement Announcement Module
Collapse
No announcement yet.
How to log the SOAP request/response at client side with WebServiceTemplate Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to log the SOAP request/response at client side with WebServiceTemplate

    The web service to be invoked is https, therefore I cannot use tcpmon to capture the request/responses. Also tried donsProxy, the call goes through fine but the xml captured is binary.

    Therefore I hoped I can log the soap messages within Spring webservice. I have configured log4j at TRACE level, and saw the (partial) log messages below. But SOAP message is not logged in its entirety. It appears only a summary is logged. Where to configure logging the entire SOAP messages?

    2010-09-08 19:07:42,402 DEBUG org.springframework.ws.soap.security.wss4j.Wss4jSe curityInterceptor - Securing message [SaajSoapMessage {http://domain.co.com/alias}GetAlias] with actions [UsernameToken]

    2010-09-08 19:07:42,504 DEBUG org.springframework.ws.client.MessageTracing.sent - Sent request [SaajSoapMessage {http://domain.co.com/alias}GetAlias]

    2010-09-08 19:07:43,438 DEBUG org.springframework.ws.client.MessageTracing.recei ved - Received response [SaajSoapMessage {http://schemas.xmlsoap.org/soap/envelope/}Fault] for request [SaajSoapMessage {http://domain.co.com/alias}GetAlias]

    2010-09-08 19:07:43,439 DEBUG org.springframework.ws.soap.security.wss4j.Wss4jSe curityInterceptor - Validating message [SaajSoapMessage {http://schemas.xmlsoap.org/soap/envelope/}Fault] with actions [null]
    <?xml version="1.0" encoding="UTF-8"?><soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:faultcode xmlns="urn:security:soap:authorize:code">DENIED</soap:faultcode><soap:faultstring>DENIED</soap:faultstring></soap:Fault>

  • #2
    resolved

    it was due to log4j is configured with threshold="debug"

    Comment

    Working...
    X