This week's giveaway is in the Java in General forum.
We're giving away four copies of Java Challengers and have Rafael del Nero on-line!
See this thread for details.
Win a copy of Java Challengers this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

TCPMonitor/Soap problem

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/".
 
Ranch Hand
Posts: 624
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Message for you sir! I think it is a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic