David Castro wrote:
> Is anyone is aware of how I can dynamically tell CXF (and thus JAXB) that
> there are some fields I want excluded from the resultant XML being returned?
> 
> I don't want to reinvent the wheel if I don't have to, but I can't find
> information on how to do what I want using the CXF framework rather than
> having to parse the XML outbound and remove what needs removing.  Ideas?

@XmlTransient tells JAXB to exclude particular fields.  You might need
to annotate either the field directly or its get/set methods, depending
on the @XmlAccessorType of the containing class.

Ian

-- 
Ian Roberts               | Department of Computer Science
[email protected]  | University of Sheffield, UK

Reply via email to