The moose likes Web Services and the fly likes How to view the Soap Message Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "How to view the Soap Message" Watch "How to view the Soap Message" New topic
Author

How to view the Soap Message

Sachin Dere
Ranch Hand

Joined: Jan 14, 2003
Posts: 80
Hi guys,
How do i view the actual SOAP Message which is being posted to MSSOAP WebServices?is there any API or do i have to see at the serverside?
Pls help me.
thanks,
Sachin
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
There is many tcp/ip sniffers available..

Like SOAP Monitor by Apache Axis.
TCP/IP monitor by http://www.pocketsoap.com/tcptrace/
and the best for your case is http://www.gotdotnet.com/team/tools/web_svc/default.aspx


Spritle Software Blogs
David Heroux
Greenhorn

Joined: Jul 12, 2005
Posts: 4
Originally posted by Sachin Dere:
Hi guys,
How do i view the actual SOAP Message which is being posted to MSSOAP WebServices?is there any API or do i have to see at the serverside?
Pls help me.
thanks,
Sachin


OK, I'm about a year behind the rest of ya'all, but I actually have the SOAP Monitor working!

Here's what I have learned ... (assumes Axis installed properly)

1) When compiling the SOAPMonitorApplet.java file, make certain that the resulting class files end up in the .../webapps/axis directory (I have a subdirectory called "monitors" where I do the build and deploy)
RESULT --> applet displays @ http://localhost:8080/axis/SOAPMonitor

2) Undeploy yourService - the one that you wish to monitor (assumes prior successful deployment)

3) Deploy SOAPMonitorService
RESULT --> SOAPMonitorService listed @ http://localhost:8080/axis/servlet/AxisServlet

4) Update WSDD for yourService to include the requestFlow/responseFlow handler tags (IN YOUR SERVICE), as per instruction #3 of "Enabling the SOAP Monitor" @ http://ws.apache.org/axis/java/install.html#AppendixEnablingTheSOAPMonitor

VERY IMPORTANT ... your service parameters go AFTER the requestFlow / responseFlow tags.

5) Redeploy yourService
RESULT --> YourService listed @ http://localhost:8080/axis/servlet/AxisServlet

Not sure if it matters, but I would suggest that the SOAPMonitorService always be deployed FIRST.

6) Undeploying the SOAPMonitorService. Not sure if this was my mistake, but
the undeploy-monitor.wsdd should specify
<service name="SOAPMonitorService"/>
NOT
<service name="urn:SOAPMonitorService"/>

This caused my server-config.wsdd to become corrupted. which leads me to item 7) Perform frequent backups of the .../webapps/axis/WEB-INF/server-config.wsdd file as you are learning and developing/updating services. This way, you can always recover to a working version (you will need to bounce your application server (Tomcat in my case)
before starting fresh.

Hope this helps whomever is behind me.

_DaX
 
 
subject: How to view the Soap Message
 
Threads others viewed
JAX WS CLIENT program error -SOAP message formation
SOAP with attachements?
SOAP message with attachment server-side implementation
How do I view the SOAP messages in Axis 1.4
SOAPMonitor
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com