This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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