WebService immediately issued an error saying that the class file could not be found
http://127.0.0.1:8080/axis/HelloWS.jws?wsdl
Sorry, something seems to have gone wrong ... here are the details:
Fault-; Nested exception is:
Java.io.filenotfoundexception:d:\tomcat7\webapps\axis\web-inf\jwsclasses\hellows.class ( The system could not find the specified file. )
Axisfault
faultcode: {http://schemas.xmlsoap.org/soap/envelope/}server.userexception
FaultSubcode :
Faultstring:java.io.filenotfoundexception:d:\tomcat7\webapps\axis\web-inf\jwsclasses\hellows.class ( The system could not find the specified file. )
Faultactor:
faultnode:
faultdetail:
{http://xml.apache.org/axis/}hostname:admin-pc
The reason is that HELLOWS.JWS is directly renamed by the Hellows.java file, which contains the package path, and in the axis of the timely release is not allowed to remove it.
of the wrong
Package com.demo.action; Wrong is in this line
public class Hellows {
public string Firstwsmethod (string a,string b) {
String result= "a=" +a+ "b=" +B;
Return ' You are gteat,the ' +result;
}
}
Right to
public class Hellows {
public string Firstwsmethod (string a,string b) {
String result= "a=" +a+ "b=" +B;
Return ' You are gteat,the ' +result;
}
}