Web services in netbeans

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:

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;
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!