Hi
You can use javabeans, like this.
package test;
public class PersonBean {
private String name;
private int age;
//
public PersonBean() {
}
// setters and getters ...
}
package test;
public class TestService1 {
public PersonBean[] getPersons(String param) {
PersonBean [] resp = new PersonBean[2];
resp[0] = new PersonBean();
resp[0].setName(param);
resp[0].setAge(0);
resp[1] = new PersonBean();
resp[1].setName(param);
resp[1].setAge(1);
return resp;
}
}
How about this ?
kinichiro
--- VF <[EMAIL PROTECTED]> wrote:
> Hi,
> You should map it in Complex Data Type and make XML array through
> maxoccurance ( for example unbounded) attribut.
>
> VF.
>
> -----Original Message-----
> From: Sathija Pavuluri [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 27, 2006 4:49 PM
> To: [email protected]
> Subject: [Axis2] Complex Datatypes - ArrayList of objects.
>
> Hello,
>
> I've read in one of these messages that in order to pass an ArrayList
> it
> needs to be converted to an Array.
> If it is an array of primitive types that might work fine.
> But if we need to pass an ArrayList of other objects like simple data
> transfer objects, how is that possible?
> Or is that possible?
>
> Thanks,
> Sathija.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]