TCP and Http tunnel
By manishkg on Jul 31, 2006
Recently, while working on one web service client application using JAX-RPC, I found the need to see the SOAP message generated by my application and also the response message received by it. So, I want to use some kind of tunnel to intercept TCP messages generated by JAX-RPC. I searched on net and come to know about TCP Tunnel/Monitor application which comes as part of Apache SOAP. I downloaded it and start using it. After a few try, I found that this tunnel is not able to send the messages to the destination site because my computer is behind http proxy and firewall. I tried to set -Dhttp.proxy and -Dhttp.port java options while starting TCP tunnel but still no luck. I again turned to google and found one http tunnel application. I downloaded http tunnel application and set my TCP tunnel to forward request to this http tunnel. The http tunnel is now being set to direct the request to the web service provider. This way, I was able to intercept SOAP messages generated and received by my application.