Thanks a lot Chris for the quick response. I am struggling with it from past 2 days.
I am using axis 2-1.6.1 but using the code generator eclipse plugin 1.3.0. Do you know if it has been fixed in latest version ? Thanks in advance, Hari From: Meeusen, Christopher W. [mailto:meeusen.christop...@mayo.edu] Sent: Monday, December 12, 2011 3:11 PM To: java-user@axis.apache.org Subject: RE: Array List support in AXIS2 Ive always had to create an array from my arraylists and return the array. We were using axis2 1.3.1. From: java-user-return-86073-Meeusen.Christopher=mayo....@axis.apache.org<mailto:java-user-return-86073-Meeusen.Christopher=mayo....@axis.apache.org> [mailto:java-user-return-86073-Meeusen.Christopher=mayo....@axis.apache.org]<mailto:[mailto:java-user-return-86073-Meeusen.Christopher=mayo....@axis.apache.org]> On Behalf Of Sathunuri, Hariprasad (US - Arlington) Sent: Monday, December 12, 2011 2:01 PM To: java-user@axis.apache.org<mailto:java-user@axis.apache.org> Subject: Array List support in AXIS2 Hell Everyone, I have class defined as follows : public class StateBean { public StateBean() { } public String stateName; public String stateCode; public ArrayList<CountryBean> countryList1; public final ArrayList<CountryBean> getCountryList() { return countryList; } public final void setCountryList1(ArrayList<CountryBean> countryList) { this.countryList1 = countryList; } public String getStateName() { return stateName; } public void setStateName(String stateName) { this.stateName = stateName; } public String getStateCode() { return stateCode; } public void setStateCode(String stateCode) { this.stateCode = stateCode; } } My wev service returns the list of state beans. I created an AAR file and deployed in tomcat but in my wsdl definition type of countryList1 is <type:anytype> instead of countryBean. If I convert the arraylist to array it is working fine. Please let me know if AXIS2 supports arraylist with in a bean ? Thanks, Hari This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. v.E.1