Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 77127 invoked from network); 29 Dec 2010 22:42:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Dec 2010 22:42:28 -0000 Received: (qmail 11524 invoked by uid 500); 29 Dec 2010 22:42:28 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 11342 invoked by uid 500); 29 Dec 2010 22:42:28 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 11333 invoked by uid 99); 29 Dec 2010 22:42:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Dec 2010 22:42:28 +0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jchaffee@ebates.com designates 204.14.152.166 as permitted sender) Received: from [204.14.152.166] (HELO exchange2.corp.ebates.com) (204.14.152.166) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Dec 2010 22:42:22 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Overriding JAXB annotations Date: Wed, 29 Dec 2010 14:42:00 -0800 Message-ID: <2443D95470D8D8449B8CF19844008587032448C1@exchange2.corp.ebates.com> In-Reply-To: <1293636857194-3321436.post@n5.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: thread-topic: Overriding JAXB annotations thread-index: AcunbcSZ+2Tb+rVXTuCeGzIxXGJNUAAO5Zgw References: <1293575659389-3320779.post@n5.nabble.com> <4D1AC55A.809@artifact-software.com> <1293636857194-3321436.post@n5.nabble.com> From: "Jason Chaffee" To: I have solved this problem by using AOP. I created my own annotation (@MyTransientAnnotation) and annotated the methods that I did not want exposed. Then I use a request header or something to identify who is requesting the data and based on either Aspect returns null or returns the data. -----Original Message----- From: cj91 [mailto:Jonathan.Fisher@argushealth.com]=20 Sent: Wednesday, December 29, 2010 7:34 AM To: users@cxf.apache.org Subject: Re: Overriding JAXB annotations Ron Wheeler wrote: >=20 > Would it not be easier to build a web service for external clients that=20 > just calls the full internal web service? > This might also allow additional auditing or reporting. >=20 That's exactly what i'm attempting to do. The extrenal webservice will have authentication, authorization and tracking built in, but the problem how do you call the internal service and hide certain information? One way to is redefine all of the objects, and add @XMLTransient as was mentioned... but we don't want to do copy/paste engineering... Just curious if anyone has faced a similar problem and what they did to solve it. --=20 View this message in context: http://cxf.547215.n5.nabble.com/Overriding-JAXB-annotations-tp3320779p33 21436.html Sent from the cxf-user mailing list archive at Nabble.com.