Would it not be easier to build a web service for external clients that just calls the full internal web service?
This might also allow additional auditing or reporting.

Ron

On 29/12/2010 12:09 AM, Arul Dhesiaseelan wrote:
Adding @XmlTransient on the internal field should work for you.

On Tue, Dec 28, 2010 at 3:34 PM, cj91<[email protected]>wrote:

We're creating an external ('customer') version of a webservice for a
customer. The 'internal' version is actually an remote EJB. The DTO objects
on the EJB are annotated with JAXB.

The problem is that some of the information we do not want to send
externally. There fields on the objects that need to exist for internal
use,
but we don't want the customer seeing them.

Back when we used Aegis mapping, this wasn't a problem. Aegis could take a
set of mappings that translates internal objects to XML that was consumable
extrenally. Aegis seems to be dead these days, plus is doesn't support
schema validation.

My question is, if we have an object annotated with JAXB, does CXF allow
you
to ignore some of the fields on a JAXB class?

Thanks, Happy Holidays,
-Jonathan
--
View this message in context:
http://cxf.547215.n5.nabble.com/Overriding-JAXB-annotations-tp3320779p3320779.html
Sent from the cxf-user mailing list archive at Nabble.com.




Reply via email to