aspose file tools*
The moose likes Web Services and the fly likes How to monitor remote web service endpoints Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to monitor remote web service endpoints" Watch "How to monitor remote web service endpoints" New topic
Author

How to monitor remote web service endpoints

Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
Hi All,


I am using AXIS TCPMonitor to monitor my soap requests and soap response for all the web service deployed on my machine i.e. localhost. But I dont know how to configure AXIS TCPMonitor to monitor my request soap messsage and response soap messagefor monitoring say a remote host 66.32.444.232 and port 88 which exposes a web service. If I open my AXIS TCPMonitor applet, what does "Act as a ... proxy" radio button mean ?

Please suggest ...


Thanks & Regards,


RR Kumaran
SCJP 1.4
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

A proxy is a host that's between you and another host, and relays the message as if you'd targeted the remote host.

If you're trying to see your requests and responses to the remote host using TCPMonitor, set it up with 'Act as a listener'. Set the target hostname to the remote IP, the target port to the remote port, set a listener port, and send your SOAP queries to the listener port on your local machine. It should work.

(Taken from Apache's AXIS documentation. And edited to fix a typo in the URL.)

Hope that helps!
[ February 04, 2005: Message edited by: Theodore Casser ]

Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
Theodore Jonathan Casser- Thank you for the reply. I am tring to send a soap message to say 73.341.263.283 and port 80. Now I have configured below settings in my TCPMonitor :

Listen Port# 9999
Act As a Listener
Target Hostname 73.341.263.283
Target Port# 80
Options
HTTP Proxy Support
Hostname 11.237.236.8
Port# 4128


Now I am getting the output from the server as "(504)Gateway Time-out" and I dont see any soap request and soap response messages in my TCPMonitor ?

If dont use any TCPMonitor then I get a soap request message and soap response message. What am I missing ?



Thanks & Regards,
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

Try it without the proxy.
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
If I dont specify any proxy I am getting (403)Forbidden response.
Ashutosh Shahi
Ranch Hand

Joined: Feb 06, 2005
Posts: 36
Are u trying to access a server outside your corporate network? In that case try starting the TCPMON with the parameters: -Dhttp.proxyHost=<ur proxy server> -Dhttp.proxyPort=80 -Dhttp.proxyUser=<user id> -Dhttp.proxyPassword=<password>
Ashutosh


<a href="http://blogs.sun.com/roller/page/ashutosh" target="_blank" rel="nofollow">http://blogs.sun.com/roller/page/ashutosh</a>
Ashutosh Shahi
Ranch Hand

Joined: Feb 06, 2005
Posts: 36
Did this solution work out? If not, were u able to overcome this problem?
Ashutosh
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
instead of setting proxy conf. before starting TCPMonitor I have set that in the TCPMonitor using proxy checkbox but all it is of no use.
 
 
subject: How to monitor remote web service endpoints