Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Service Jndi Lookup Error

 
Karthik Rajendiran
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic