axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodrigo Ruiz <>
Subject Re: Sending a Collection of objects (advanced :-))
Date Tue, 14 Feb 2006 13:54:04 GMT
If you want to avoid custom serializers, the only way is to have a 
separate set of classes for your web service, and convert to and fro 
your internal set.

I have never tried, so I am not sure at all, but maybe you can use 
"DynaBeans" from jakarta commons beanutils to dinamically create 
"web-service compatible" wrappers for your classes. If you try this 
path, and get success, don't forget to share it! ;-)

Rodrigo Ruiz

Giggle Giggle wrote:
> So, when I want to avoid custom serializers what is the best solution (Java client)?
> I have to have collections as attributes in my classes (arrays don't fit my needs).
> Are wrappers (around every class containing a collection) the good way or is there any
better solution? 
> (maybe the answer is hidden in "class clasting in your code" but I don't understand what
it means)
> Thank you
> Lucas
>> ------------ Původní zpráva ------------
>> Od: Anne Thomas Manes <>
>> Předmět: Re: Sending a Collection of objects (advanced :-))
>> Datum: 14.2.2006 14:16:40
>> ----------------------------------------
>> You should convert all collections to arrays -- especially if your goal is
>> interoperability with non-Java applications. As an alternative to doing the
>> class clasting in your code, you could write your own schema for the
>> information and custom serializers.
>> Anne

View raw message