File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transport verification

 
John Davis
Ranch Hand
Posts: 189
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 265
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is tcpmon? Can I find it in window?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
John Davis
Ranch Hand
Posts: 189
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I have WSAD. That is why I cannot find tcpmon.
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also try tcpTrace a free & useful tool http://www.pocketsoap.com/tcptrace/
 
Chad McGowan
Ranch Hand
Posts: 265
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 265
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 265
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic