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 Service Jndi Lookup Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Service Jndi Lookup Error