This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes transport verification Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "transport verification" Watch "transport verification" New topic
Author

transport verification

John Davis
Ranch Hand

Joined: Nov 02, 2000
Posts: 189
I have a java application which uses Apache SOAP RPC to soap a request to a server. The call.invoke () invariably returns a null Response object (and I get a SOAP Exception complaining about not having a Fault Element in the Response).
My client environment is Java 1.3.1 in a Solaris environment, and the Server environment is MS .NET VB etc. The developers in the server environment claim they never receive my SOAP request message. However, when I modify the URL to point to a local JSP page, the message is received by the JSP page OK, and it sends a reply message to my Java client which satisfies the return type of apache.soap.rpc.Response
How can I verify that the SOAP request message is in fact being sent to the server site?
Chad McGowan
Ranch Hand

Joined: May 10, 2001
Posts: 265
you can use tcpmon to listen to your local host, then forward the request on to the server. This way you can know that they are receiving the same request your jsp receives.
shell Johnson
Ranch Hand

Joined: Jul 17, 2002
Posts: 37
What is tcpmon? Can I find it in window?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
What is tcpmon?
It stands for Axis TCP Monitor. Go to http://ws.apache.org/axis/ and select "User's Guide" and "Appendix: Using TCPMon".


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
John Davis
Ranch Hand

Joined: Nov 02, 2000
Posts: 189
Shell,
Chad has indicated in a previous post, that Apache Axis includes the tcpmon utility. I don't have Apache Axis and so I haven't been able to use this utility.
John Davis
shell Johnson
Ranch Hand

Joined: Jul 17, 2002
Posts: 37
Thanks. I have WSAD. That is why I cannot find tcpmon.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
You can also try tcpTrace a free & useful tool http://www.pocketsoap.com/tcptrace/


Spritle Software Blogs
Chad McGowan
Ranch Hand

Joined: May 10, 2001
Posts: 265
Originally posted by Shell Godswind:
Thanks. I have WSAD. That is why I cannot find tcpmon.

Shell, WSAD 5 will allow you to set up a server monitor that will also show you the request and response data.
Chad McGowan
Ranch Hand

Joined: May 10, 2001
Posts: 265
Originally posted by John Davis:
Shell,
Chad has indicated in a previous post, that Apache Axis includes the tcpmon utility. I don't have Apache Axis and so I haven't been able to use this utility.
John Davis

Sorry, I thought that older versions of Apache SOAP also came with this utility.
Chad McGowan
Ranch Hand

Joined: May 10, 2001
Posts: 265
Originally posted by Chad McGowan:

Sorry, I thought that older versions of Apache SOAP also came with this utility.

It does actually, just with a different name. This is from the Apache SOAP 2.3 documentation.
To start the tool up, execute:
java org.apache.soap.util.net.TcpTunnelGui listenport tunnelhost tunnelport
where listenport is the port that you want the tool to listen on (i.e. the port which you will send your SOAP messages to), tunnelhost is the hostname of the SOAP server, and tunnelport is the port that the SOAP server is running on.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: transport verification