> Is there such a thing in Axis as a descriptor file where one 
> could list the classes/beans and also the methods that would 
> like to be exposed?
> 
> Or maybe the methods to be exposed can be annotated via 
> custom javadoc tags. 
> Can XDoclet be used to achieve this? I can't tell from 
> briefly looking at it ... If someone has more experience with 
> it please share it with us.
> 
> Thank you.
> 
> Tim

There's a constructor for the BeanSerializer that takes 4 parameters,
the last parameter is an array of BeanPropertyDescriptor you can use
this constructor to make a beanSerialzier that only knows about a subset
of the fields on the bean. Its pretty easy to write a new Serializer
class that wraps the BeanSerializer and constructs it as needed, then
delegates all subsequent calls to it. Once you've got that, you just
need to update the type mappings to tell Axis to use your new serializer
instead of the bean serializer.

Cheers
Simon

Reply via email to