• Post Reply Bookmark Topic Watch Topic
  • New Topic

TCPMonitor/Soap problem

 
Angelo Bonaparte
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/".
 
Alan Wanwierd
Ranch Hand
Posts: 624
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having exactly the same problem!

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...

Are you suggesting that I need to hack up the generated code and change all references to http://ourbusinesspartner.com/webserviceaddress to http://localhost:12345/webserviceaddress - where my monitor is defined as:

LocalMonitoring Port: 12345
HostName: ourbusinesspartner.domain.com
Port: 80
Type: HTTP

(So much for 'seemless interoperability' - PAH! )

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 ]
 
John Lincoln
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!