TOTD #1: SOAP Messaging Logging in Metro

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:

  1. 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 property com.sun.xml.ws.transport.http.HttpAdapter.dump=true.

  2. 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

Comments:

[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...

Posted by Arun Gupta's Blog on November 27, 2007 at 11:04 PM PST #

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

Posted by Frances Steele on June 07, 2008 at 10:47 AM PDT #

Frances, please post your request to Metro forum at:

http://forums.java.net/jive/forum.jspa?forumID=46&start=0

Posted by Arun Gupta on June 10, 2008 at 06:11 AM PDT #

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

Posted by Tom Ethens on August 31, 2009 at 08:14 AM PDT #

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....

Posted by Azuryy on August 31, 2009 at 07:39 PM PDT #

You should be able to use create-jvm-options to add the propery. Try that ?

Posted by Arun Gupta on September 02, 2009 at 02:14 AM PDT #

I tried, it doesn't work.

Posted by Azuryy on September 04, 2009 at 03:29 PM PDT #

This maybe sound stupid but where exactly does the output go to (for the client side)? I can't seem to find it.

Posted by David on January 11, 2010 at 06:19 AM PST #

David,

This output will be dumped on the shell output where the client is invoked.

Posted by Arun Gupta on February 23, 2010 at 08:58 AM PST #

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.

Posted by Chintan on June 30, 2010 at 12:03 PM PDT #

Post a Comment:
Comments are closed for this entry.
About

profile image
Arun Gupta is a technology enthusiast, a passionate runner, author, and a community guy who works for Oracle Corp.


Java EE 7 Samples

Stay Connected

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today