Jai’s Weblog – Tech, Security & Fun…

Tech, Security & Fun…

  • Jaibeer Malik

    Jaibeer Malik
  • View Jaibeer Malik's profile on LinkedIn
  • Subscribe

  • Feedburner

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 16 other followers

  • Archives

  • Categories

  • Stats

    • 236,372
  • Live Traffic

Tips&Tricks: How to monitor and log soap messages

Posted by Jai on October 30, 2012

A quick tip to monitor and log soap messages. Most of the monitoring tools are kind of middle man to monitor the request-response between client and server. Now you can log the traffic to file and see how data is passing around.

Set the below system property,

com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true

If you are running your client from application server eg. tomcat, you can set it as CATALINA_OPTS param.

-Dcom.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true

For Soap request/response example check, Monitoring SOAP Messages Made Easy With JAX-WS RI 2.0.1

About these ads

2 Responses to “Tips&Tricks: How to monitor and log soap messages”

  1. sejnar said

    So which of the those two system properties that you mention do I have to use? From all I can see only the system property with ‘internal’ in it works … at least on more recent versions of JAX-WS RI. (the Metro Guide still happily only refers to the property name without the ‘internal’ part)

    • Jai said

      It depends on which version of jar you are currently using,

      For example, still the old package name with ‘internal’ is used.

      com.sun.xml.ws
      jaxws-rt
      2.2.5

      And indeed for latest versions, the package name is changed.

      Check your jar version/ java version and accordingly use the property name, I haven’t looked at from which it has been changed.

      Hope that helps.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: