I made a Webservice Operation whose return type is STRING [] Following is the code
And then i made a Servlet The code of the servlet thing is :
Problem is in my WEbservice Code in RETURN STATEMENT i have attributes of any table and i want to take these attributes to servlet so that i can see them on my front end but what im getting here is the only the LAST ATTRIBUTE
I WANT TO HAVE ALL THE ATTRIBUTES HERE ; so that i can print them in my front end
HELP!
Code:
@WebMethod(operationName = "authorize") public String [] authorize(@WebParam(name = "Username") String Username)
{
CAuthorization CA = new CAuthorization();
String [] Result= null;
try {
Result = CA.CheckAuthorization(Username);
} catch (SQLException ex) {
Logger.getLogger(WS_Authentication.class.getName()).log(Level.SEVERE, null, ex);
}
return Result;
}
Code:
try { // Call Web Service Operation
java.lang.String result = null;
result = port.authorize(Username);
out.println("Result = "+result);
} catch (Exception ex) {
// TODO handle custom exceptions here
}
I WANT TO HAVE ALL THE ATTRIBUTES HERE ; so that i can print them in my front end
HELP!
Comment