• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Webservice example

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic