Hi, I'm trying to configure TCPMonitor to view SOAP messages being sent back and fort. I have a web service that is not ours and resides remotely on another server. I took the wsdl and generate the necessary files using WSDL2Java. Then I proceeded to write a simple client to access the service. I would like to view the SOAP messages...Is that feasible remotely or do the web service have to reside on my localhost to be able to view them. The endpoint I have for the service is a url with no port. My client, is a java class, not a web application. What values should I use for Listen port, target hostname(I think this should be the host where the service resides, am I right?) and the target port(not sure about this one). Any help is appreciated.
Yes, you can use TCPMon for remote web services - that's what it's there for. The listening port could be anything you want, e.g. 8080. The target hostname is the one where the service resides, as you suspected. If your target URL does not include a port, then the port is 80 (assuming that it's an HTTP URL). Last thing to do is to change your client not to access the remote host, but "http://localhost:8080/".
I have a remote WebService that I am trying to invoke using a Java Client I generated using the RAD6 tooling (WSDL2Java).
Unfortunately my attempts to invoke the service dont do anything - no errors, no response - it just runs and stops. So I want to have a look at the SOAP and see whats going on and check to se if the generated code is producing a SOAP message that makes sense and if we are in fact gettign any reponse at all.
I have tried using the TCP/IP Monitor - but as yet havent seen ANYTHING on it...
Ignore me - I found the reference in the generated code and made that change suggested above - it works a treat!! Unfortunately the SOAP all looks good so I have no idea why the response object in the generated classes isnt populated.. oh well... baby-steps!! [ February 19, 2007: Message edited by: Adrian Wallace ]
If using RAD 6.0, when you test the web-service using webservices explorer, you can see the output in the Panel below, in the same panel there a link called "source", when you click on source, you can see SOAPRequest as well as SOAPResponse.
I guess you already know this, but just wanted to share anyway