*
The moose likes EJB and other Java EE Technologies and the fly likes Connecting to webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Connecting to webservice" Watch "Connecting to webservice" New topic
Author

Connecting to webservice

tharanga fernanado
Greenhorn

Joined: Apr 11, 2013
Posts: 1


I got this code from net and new to webservice
my questions are:

1)what is the use of lookup?
2)"WebServiceLookup lookup = (WebServiceLookup)Context.getInstance(Context.WEBSERVICE_LOOKUP);" here why casting is necessary
3)Can we cannot directly connect to webservice?

4)" StockQuoteServiceProxy quoteService = (StockQuoteServiceProxy)lookup.lookup(
"http://localhost:6060/StockQuoteService/",StockQuoteServiceProxy.class );" Meaning of this code

Appreciate simple answers that will give me entry point.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connecting to webservice
 
Similar Threads
Questions on RPCServiceClient with axis2
Problem returning a String array from a web service
Client problem for my JAX-WS web service
Confusion in writing web service client + jax-ws
Help me in writing client foe this JAX ws Web service