Using TCP/IP Monitor with Weblogic Webservice Clients
TCP/IP Monitor is an excellent eclipse plugin to monitor TCP/IP or HTTP traffic. In this scenario, i have used this plugin to analyze the SOAP messages that are exchanged between the webservice client and server developed using Weblogic tools.
TCP/IP Monitor is a proxy server that monitors for all traffic flowing through. In case, you want to monitor the traffic between two network nodes, you will have to use TCP/IP Monitor as proxy server so that it can monitor the traffic flowing between the endpoints.
Initially setup the TCP/IP Monitor using Preferences window in Eclipse. Create a new monitor by specifying the local monitoring port(which will the port number of the TCP/IP Monitor proxy server), host name(host name of the webservice server), port(port number of the webservice server port) and type(select HTTP or TCP/IP). After the new monitor is defined start the monitor.
Modify the Weblogic webservice client code to use the TCP/IP Monitor proxy server. This is done by the following piece of code. This code needs to be executed before client webservice port creation.
System.setProperty("http.proxyHost", "localhost");
System.setProperty("http.proxyPort", "80");
System.setProperty("weblogic.webservice.transport.http.proxy.host", "localhost");
System.setProperty("weblogic.webservice.transport.http.proxy.port", "80");
The port specified will have to be same as the one of the TCP/IP Monitor created to monitor the webservice.
On invocation of the webservice client, you will be able to see the data exchanged between the client and the server in the TCP/IP Monitor view. It shows the SOAP messages exchanged.
TCP/IP Monitor is an excellent tool to analyze the SOAP messages exchanged in webservice invocations.
The TCP/IP Monitor plugin is part of standard Eclipse distribution for J2EE developers.
Useful Links
To search documentation on TCP/IP Monitor
http://help.eclipse.org/ganymede/index.jsp
Using proxy for Weblogic webservice client




2 comments