I've been facing the same problem.

The problem is in the BeanSerializer : It is using ClassRep to introspect
the bean classes, and ClassRep select all the public fields (final or not).

I read in axis-dev mailing list that there are plans to stop using ClassRep
and to use TypeDesc instead, but I think it's still not implemented in the
beta2.

I haven't found solutions to say Axis which field to serialize. And I think
that, as long as ClassRep is used in BeanSerializer, it's not possible... 

C�dric


-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoy� : mardi 30 avril 2002 18:38
� : [EMAIL PROTECTED]
Objet : Beta2 bean serialization: turn off inclusion of public fields?


I'm using public fields as enums, and don't want them serialized.
In fact they are final, so they can't be de-serialized.
More generally, can I control which parts of beans get serialized?
Thanks in advance.

Reply via email to