[jboss-user] [JBossWS] - How to log entire incoming and outgoing message?

bsheward do-not-reply at jboss.com
Thu Apr 17 13:55:56 EDT 2008


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,


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144968#4144968

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144968

More information about the jboss-user mailing list