Hi Scott and others,
I have been using SOAPUI to test webservices and everything went well. I am trying to write a java based client using Netbeans IDE 6.0.1. I was able to create it without any build errors. But when I run it, it is not returning anything(no respose and no error). Here are the steps I took to create a client in netbeans.
1. Created a new Java application project
2. Created a Web service client using the WSDL file (with correct endpoint URL). It created all the necessary classes.
3. Called the following in a simple java program.
public static void main(String[] args) {
new ws3.Authentication_Service();
ws3.Authentication port = service.getBasicHttpBindingAuthentication();
// TODO initialize WS operation arguments here
java.lang.String userName = "test";
java.lang.String userPassword = "test";
// TODO process result here
java.lang.String result = port.authenticateUser(userName, userPassword);
System.out.println("Result = "+result);
} catch (Exception ex) {
// TODO handle custom exceptions here
}
}
When I run it, it will finish running it without printing any Result. When I debugged it, the control goes to the end of the main method from the red line.
Please let me know if I am missing something in this implementation which is causing this problem.
Thanks.