• Post Reply Bookmark Topic Watch Topic
  • New Topic

Webservice example  RSS feed

 
Subash Sagar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

When I compile the java files FibonacciServiceLocator and FibonnaciSoapBindingStub of fibonnacci code, it gives me error saying
package org.apache.axis does not exist.

Can any one tell me where or how to solve this problem

Thanking You
Subash
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to have the various jar files that come with Axis in your classpath (or maybe just axis.jar might suffice).
 
Subash Sagar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Now i have this problem it says package javax.xml.rpc namespace does not exist.

I have jaxrpc and jaxrpc-api in my classpath.

Thanking You
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no package named "javax.xml.rpc.namespace" - it's either javax.xml.rpc or javax.xml.namespace. Both are in jaxrpc.jar.
 
Subash Sagar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But when i compile Client.java it gives compilation error saying
package javax.xml.rpc.namespace does not exist
import javax.xml.rpc.namespace.Qname

So is it something to do with jaxrpc jar file.

Thank You
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The correct classname is "javax.xml.namespace.QName". Change your source file accordingly, and try compiling it again.
 
Subash Sagar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes You are correct, the article has wrong import statement.

I am atlast able to run a simple web service.

Thanks Very Much
Subash
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!