login button

Is axis 2 support for array list or arrays

Forums :

I want to know we can make a service that use array list or vector as a methoud signature.Becouse i am unable to do this task .my code is follows
 
 public void setNames( ArrayList<Name> names )
    {
        for (int i = 0; i < names.size(); i++) {
            Name name = names.get(i);
            System.out.println("name = " + name);
        }
    }
 
The Name class just set and get string name.The created WSDL file and stubs not support to invoke that survice
 
And i also wants to kno can we return a arraylist or vector from a methoud in a service like follows
 
  public ArrayList getNames()
    {
        ArrayList n = new ArrayList();
        Name name = new Name();
        name.setValue("TYest");
        n.add(name);
        return n;
    }
Plz help me.Thank you