File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes new to web service clients: how to invoke a web service if proxy client doesn't have setEndPoint() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "new to web service clients: how to invoke a web service if proxy client doesn Watch "new to web service clients: how to invoke a web service if proxy client doesn New topic
Author

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

Ak Verma
Greenhorn

Joined: Apr 29, 2013
Posts: 5
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]

Ak Verma
Greenhorn

Joined: Apr 29, 2013
Posts: 5
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

Joined: Apr 29, 2013
Posts: 5
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

Joined: Apr 29, 2013
Posts: 5
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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: new to web service clients: how to invoke a web service if proxy client doesn't have setEndPoint()
 
Similar Threads
SSL error
Beginning Web Services
Client web service with url wsdl entered by user
Webservice internals
Web service Authorization