This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Services and the fly likes How  to use tcpmon Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How  to use tcpmon" Watch "How  to use tcpmon" New topic
Author

How to use tcpmon

nand rai
Greenhorn

Joined: Feb 17, 2009
Posts: 27
I have a web application that is running on localhost 8443.

In my application I have a webform where the user enters the data , i store this data to database using a webservice ..


How to use the tcpmon in this situation.

Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
So the flow is: users enters data in form -> submits to web app -> calls web service -> web service stores data in DB?

Which part do you want to monitor: user -> web app, or web app -> web service?
nand rai
Greenhorn

Joined: Feb 17, 2009
Posts: 27
i want to monitor the soap request from webapp --> to webservice.

servlet which uses the stub class to call the web service operation.

web service is hosted on a differnet server.

i want to capture the request when this operation happens.

Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Should be no problem as long as the web app is under your control; meaning - you can change the WS URL (and port) to point to your tcpmon instance, and from there to the actual WS.
nand rai
Greenhorn

Joined: Feb 17, 2009
Posts: 27
Tim Moores wrote:Should be no problem as long as the we
b app is under your control; meaning - you can change the WS URL (and port) to point to your tcpmon instance, and from there to the actual WS.


I am not following the word " you can change the WS URL (and port) to point to your tcpmon instance, and from there to the actual WS". How do i do that. your help is greatly appriciated.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
tcpmon runs on a machine with a particular IP address on a particular port - that's the IP address and port you need to use for the WS call. That way, the WC call gets sent to tcpmon instead of its actual target. And you need to set tcpmon to forward all incoming traffic to the actual IP address and port where the WS call was supposed to go.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use tcpmon
 
Similar Threads
Sniffing SOAP messages from OTHER servers
unable to tcpmon a web service consumer
HTTP Sniffer
faultCode: Server.generalException
msg=No Deserializer found to deserialize a ':return'