Archive

Posts Tagged ‘weblogic soap envelopes’

TCP/IP Monitoring for viewing SOAP Envelope

February 9, 2011 2 comments

One needs a TCP/IP Monitoring tool to monitor the traffic between client and server.

Requirement

I’ve web services deployed on weblogic server. I wrote a Java client to access one of the services works fine. My requirement is to view the SOAPEnvelope request and response.

Here are the simple steps from dailyraaga to help you configure TCP/IP traffic.

STEP 1: Download axis.jar

Download axis.jar.zip file from http://www.java2s.com/Code/Jar/ABC/Downloadaxisjar.htm

Unzip the file to place it in d:\ (you may place it any where, for this post i just dropped the jar file in d drive)

STEP 2:

Run the java command: D:\>java -cp axis.jar org.apache.axis.utils.tcpmon

This should open TCPMonitor

Since my weblogic is running on localhost on port 7001

Target Hostname: localhost
Target Port: 7001

Give a random Listen Port

Listen Port: 1234

Click on ‘Add’ now

You should see a new tab Port 1234

STEP 3:

In your Java web service client code, add following statements.


System.setProperty("http.proxyHost", "localhost");
 System.setProperty("http.proxyPort", "1234");
 System.setProperty("weblogic.webservice.transport.http.proxy.host", "localhost");
 System.setProperty("weblogic.webservice.transport.http.proxy.port", "7001");

STEP 4:

Now run the java client to see the soap request/response

That’s it!

Advertisements