Hi, Im a college student and have just starting off with webservices.
I dont understand why the webservice no longer works if I reference one of my own classes in it. I will get the following error on the client:
"javax.xml.ws.soap.SOAPFaultException: java.lang.NullPointerException"
This is my web service:
@WebService()
public class Services {
@WebMethod(operationName = "login")
public boolean login(@WebParam(name = "userName")
String userName, @WebParam(name = "password")
String password) {
// I only get the problem when i reference DataConnection
DataConnection conn = new DataConnection();
boolean success = conn.checkUser(userName, password);
return success;
}
}