} then in main() - SOAPClient s=new SOAPClient(); s.viewEmployees("id","password"); In the web service bean i have defined the function like- public ArrayList viewEmployees(String userId, String password) { //getting ArrayList from database ArrayList arr=getEmployees(userId); } So, ArrayList contains the Employee objects, while each Employee object contains the individual records like userId, joining_date. and in WSDL-