6 Replies Latest reply on May 16, 2008 5:28 AM by abhay_ps

    How to log entire incoming and outgoing message?

      Hi,

      Is there a simple mechanism (System property, log file configuration, etc) to allow me to log the actual XML message being sent and received? I see bits and pieces of the XML dealing with the actual request, but nothing related to the SOAPEnvelope etc.

      I'm actually having a problem where if my SOAP request fails if it isn't prefixed by <?xml version="1.0" encoding="UTF-8"?>. So the following works:

      <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://bigfix.dev.nexgennow.com:80/webreports?wsdl">
       <soapenv:Header/>
       <soapenv:Body>
       <web:GetRelevanceResult>
       <web:relevanceExpr>?</web:relevanceExpr>
       <web:username>?</web:username>
       <web:password>?</web:password>
       </web:GetRelevanceResult>
       </soapenv:Body>
      </soapenv:Envelope>
      


      Do I need to resort to a packet sniffer or proxy to check whether the "<?..." is included in the message?

      Thanks and Regards,

      Barry