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
posted
0
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
posted
0
What is tcpmon? Can I find it in window?
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
5
posted
0
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".
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
posted
0
Thanks. I have WSAD. That is why I cannot find tcpmon.
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
posted
0
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
posted
0
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.