Hi, Axis Users,
I am trying to setup my web service using Axis, but I got this problem.
============================
D:\Tomcat5.5\webapps\axis>javac MyWebService.java
D:\Tomcat5.5\webapps\axis>copy MyWebService.java MyWebService.jws
Overwrite MyWebService.jws? (Yes/No/All): yes
1 file(s) copied.
D:\Tomcat5.5\webapps\axis>java org.apache.axis.Java2WSDL -o
MyWebService.wsdl -l
"http://localhost:8080/axis/MyWebService.jws" MyWebService
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis/Java2
WSDL
D:\Tomcat5.5\webapps\axis>
=============================
I have done serialization of class Person, and I can compile without problem
in current directory. I don't know why I got this error message? Looks like
when I use Java2WSDL to generate WSDL, we cannot find Person class any more.
Could you please help asap?
Thank you very much!
Mike
============MyWebService.jws============
public class MyWebService{
public Person tom;
MyWebService() { tom = new Person(); tom.istall = true;
tom.isrich = true; }
public Person whois() { return tom; }
}
============MyWebService.jws============
============Person.java============
public class Person implements java.io.Serializable{
private boolean istall;
private boolean isrich;
public Person() {}
public boolean getIstall() { return istall; }
public void setIstall(boolean istall) { this.istall = istall; }
public boolean getIsrich() { return isrich; }
public void setIsrich(boolean isrich) { this.isrich = isrich; }
}
============Person.java============