dev@jax-ws.java.net

passing an arrrylist of class objects(i.e. user defined) as parameters from client to server,is it possible?

From: ahsansadeque <ahsansadeque_at_gmail.com>
Date: Fri, 1 Apr 2011 05:36:00 -0700 (PDT)

this is the client side i am trying to add an instance of usersystem to an
arraylist of userystem and passing it as parameter to the client side
client side
<%
    try {
        Core.Disaster.DisasterSupportServiceService service = new
Core.Disaster.DisasterSupportServiceService();
        Core.Disaster.DisasterSupportService port =
service.getDisasterSupportServicePort();
         // TODO initialize WS operation arguments here
        ArrayList <Core.Disaster.UserSystem> ureg = new
ArrayList<Core.Disaster.UserSystem>() ;
        // TODO process result here
        Core.Disaster.UserSystem us= new UserSystem();
            us.setAddress("xyz");
            us.setEmail("abc");
            us.setFirstName("aaa");
            us.setLastName("bbb");
            us.setOrgID(1);
            us.setUserLevel("ndma");
            us.setPhoneno(1234);
            us.setPassWord("pass");
            us.setUserName("bnm");
            ureg.add(us);
        java.lang.String result = port.regUserSys(ureg);
        out.println("Result = "+result);
    }

when ever the code reaches the line java.lang.String result =
port.regUserSys(ureg); it goes into exception dont know why


server side
   */
    @WebMethod(operationName = "Reg_UserSys")
    public String Reg_UserSys(@WebParam(name = "ureg")
    ArrayList<UserSystem> ureg) {
        //TODO write your implementation code here:
        UserSystem u = ureg.get(1);
        u.Registration();
        return "new mo created";
    }

is the above concept possible

thanking in advance
-- 
View this message in context: http://old.nabble.com/passing-an-arrrylist-of-class-objects%28i.e.-user-defined%29-as-parameters-from-client-to-server%2Cis-it-possible--tp31293697p31293697.html
Sent from the JAX-WS Development mailing list archive at Nabble.com.