aspose file tools*
The moose likes Web Services and the fly likes Service Jndi Lookup Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Service Jndi Lookup Error" Watch "Service Jndi Lookup Error" New topic
Author

Service Jndi Lookup Error

Karthik Rajendiran
Ranch Hand

Joined: Aug 13, 2004
Posts: 211
Hello Friends,
We were trying to write a client for a webservice.

While getting hold of Service Class, we tried Looking up






I got "Name service is not bound in this Context Exception.
I am trying in tomcat with axis 1.2

I would like to know, wheter this feature is not supported by tomcat container, web.xml entry.


Alternatively

ServiceFactory factory = ServiceFactory.newInstance();
EmployeeWebService service = (EmployeeWebService) factory.loadService(com.example.testws.EmployeeWebService.class);

I followed this code and got handle of service class and got the portType to invoke method in webservice.


Can anyone give me explanation, what are the ways of getting handle of service class?


SCJP 1.4 SCWCD 1.4 SCDJWS 1.4
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Service Jndi Lookup Error