Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
Problem with service-ref & jndi
service-ref and mapping file
ServiceFactory.newInstance
service-ref Tag in web.xml
Unable to access WS in J2EE way