I’m starting a new series today called Tip Of The Day. In this series I’ll respond to technical questions asked directly to me, on forums or other aliases. These questions might have been answered else where and this will be a summary of such tips in that case.
This tip tells how to monitor SOAP messages in Metro (the Web services stack in GlassFish). There are couple of ways to monitor SOAP messages:
-
For client-side message logging, set system property
com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true. For server-side message logging, set system propertycom.sun.xml.ws.transport.http.HttpAdapter.dump=true. -
If you want more fine-grained logging, then consider using the logging properties defined here.
Another option is to use wsmonitor.
How do you monitor SOAP messages ?
Technorati: totd webservices metro soap glassfish
Related posts:
[Trackback] I presented on Metro, jMaki and JRuby-on-GlassFish at a partner meeting on Nov 21 in Toronto and Montreal (yeah, both cities in the same day). That makes it 3 cities (the first one being Seattle) total for now! I’ve…
Comment by Arun Gupta's Blog — November 28, 2007 @ 7:04 am
I have been recieving a lot of error messages not all witht the same message, and it is unfortunet that I had to uninstall 2.0 SDK around the same time I had installed the newest ver. of Java jre1.6.0_06 which was June 01, 2008
I am currently running Windows XP PRO SP2
The message as I am trying to load this site http://java.sun.com/javase/6/docs/jre/api/plugin/dom/index.html is:
Line 14 Char 1 Error Permission Denied code 0 Http://blogs.suncom/arugupla/entry/told_sop_messaging logging,
All my permissions I feel are correct. I have gone over ever thing that I can think of. So in this case it can only be a logon issue.
However do to all the errors I am having I am just not just what I should depend on. I would be glad to send someone a report of my system if your are interested. Please let me know.
Thank you for your time.
Frances Steele
virgoheart@msn.com
Comment by Frances Steele — June 7, 2008 @ 5:47 pm
Frances, please post your request to Metro forum at:
http://forums.java.net/jive/forum.jspa?forumID=46&start=0
Comment by Arun Gupta — June 10, 2008 @ 1:11 pm
This is beautiful…made my day..I was looking for client-side logging of SOAP messages for hours…and this BLOG did job for me.
I was scratching my head from last 8 hours for just 1 line
com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true.
Arun, Thanks for Excellent post!!
Best regards,
Tom
Comment by Tom Ethens — August 31, 2009 @ 3:14 pm
Does that has a way to specify some log system properties in the admin console?
if so, we don’t need to change any codes….
Comment by Azuryy — September 1, 2009 @ 2:39 am
You should be able to use create-jvm-options to add the propery. Try that ?
Comment by Arun Gupta — September 2, 2009 @ 9:14 am
I tried, it doesn’t work.
Comment by Azuryy — September 4, 2009 @ 10:29 pm
This maybe sound stupid but where exactly does the output go to (for the client side)? I can’t seem to find it.
Comment by David — January 11, 2010 @ 2:19 pm
David,
This output will be dumped on the shell output where the client is invoked.
Comment by Arun Gupta — February 23, 2010 @ 4:58 pm
Hi Arun,
How do I get SOAP Request/Response re-directed to a log file instead of console?
Basically, I cant seem to find exact property that would give me both SOAP Request and Response which then I could use to perform log.info.
Thanks in advance.
Regards,
Chintan.
Comment by Chintan — June 30, 2010 @ 7:03 pm