You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Han-Shen Yuan <HY...@Saba.com> on 2001/03/08 03:30:16 UTC
Vector/Array Serialization
Apologies in advance if this has been addressed in depth already. I've
tried searching on the mailing list and I can't find an answer to my woes.
1) Can Apache SOAP serialize and deserialize arrays of objects and vectors.
For example, I would like to modify the address book example to return
Address[] or a vector with references to Address objects. I believe this
can be done, but I'm not 100% sure. Does the ArraySerializer class support
Objects as well as primitives?
2) If 1 is true, can someone provide me with some sample code on how to
accomplish this? I have seen some statements about how one could create a
"wrapper" class that contains an array of objects; but I would really prefer
to just return the array.
Any guidance anyone can provide on the matter would be greatly appreciated!!
Thanks,
Han Yuan