Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

new to web service clients: how to invoke a web service if proxy client doesn't have setEndPoint()

 
Ak Verma
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to creating WS clients and consuming them and I have run into this problem the solution to which I couldn't find in any existing posts/forums.
To start with WS client creation,
1. I have RAD 7.5.5 on my pc and
2. I have followed the steps to generate the web service client support files/classes from a freely availaible WS wsdl >> http://www.webservicex.net/stockquote.asmx?WSDL
3. Okay, I have the classes now, but none of those have a setEndPoint() method in them, so I donno what to do next to invoke it.

As far as I understand, for a JAX-WS client that I have created, I have to first setthe endpoint by calling the setEndPoint() methohd and then call the web method concerned, but I donno how to proceed in absense of the setEndPoint(). Also, there are some additional classes which I have no idea how to use when the classes get generated from the wsdl: StockQuoteHttpGet, StockQuoteHttpPost, StockQuoteSoap12Proxy, ... please help.

thanks!
wsclientfiles.JPG
[Thumbnail for wsclientfiles.JPG]
 
Ak Verma
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okay.... I see that the SetEndpoint() is there in the Descriptor class in the StockQuoteSoapProxy but I am not sure why am I a not able to invoke it using an object for this proxy class..
 
Ak Verma
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
by 'not being able to invoke', I mean that setEndpoint() is not appearing in the list of methods associated with the object to select.
 
Ak Verma
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok... did a _getdescriptor().setEndPoint() and set the endpoint... but now I am getting connection timeed out... and in that dono if anyone can help...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic