Java

Moderators: zibadian
Number of threads: 7818
Number of posts: 18218

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Web services in netbeans Posted by Madman567 on 27 Feb 2011 at 3:27 AM
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;
}
}



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.