Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0AD88B14E for ; Wed, 4 Jan 2012 15:58:43 +0000 (UTC) Received: (qmail 27581 invoked by uid 500); 4 Jan 2012 15:58:42 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 27546 invoked by uid 500); 4 Jan 2012 15:58:42 -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 27538 invoked by uid 99); 4 Jan 2012 15:58:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 15:58:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rouble@gmail.com designates 209.85.160.41 as permitted sender) Received: from [209.85.160.41] (HELO mail-pw0-f41.google.com) (209.85.160.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 15:58:37 +0000 Received: by pbdd2 with SMTP id d2so12531291pbd.0 for ; Wed, 04 Jan 2012 07:58:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; bh=JPDX1bLN4hxARJj+2gPDAZNtXtGLxP7OfrdS5vY2En4=; b=bHM5LCAH53HvhrqcQpb1y0CPv7Mcq0yv/myor2iJxW51j4nC/Vw4zAA7BZi1fpibPk ZX3JC/qry2vwwrSbG9HZE2dWRgr3jaDfw7wcmNcYA3blricyqDparPbMuxJs5P0sf9R9 AvCSyg20eVOYjxWYDeaoQ338jgVjoju/t6GoI= Received: by 10.68.73.138 with SMTP id l10mr141730943pbv.65.1325692697354; Wed, 04 Jan 2012 07:58:17 -0800 (PST) MIME-Version: 1.0 Sender: rouble@gmail.com Received: by 10.142.226.15 with HTTP; Wed, 4 Jan 2012 07:57:35 -0800 (PST) In-Reply-To: References: <2617897.ds1PonjVgG@dilbert.dankulp.com> From: rouble Date: Wed, 4 Jan 2012 10:57:35 -0500 X-Google-Sender-Auth: bHm4OXK__srGMqRydS4AWWfIrMg Message-ID: Subject: Re: CXF backwards compatibility of datatypes To: Daniel Kulp , users@cxf.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable FYI, The following worked for me in the service's spring xml configuration. However, it does make me wonder if this should be the default behavior of c= xf. tia, rouble On Thu, Dec 1, 2011 at 5:41 PM, rouble wrote: > Hi Daniel, > > Thanks for that update. And where do you specify this flag: > =A0 =A0set-jaxb-validation-event-handler , =A0 false > > tia, > rouble > > On Thu, Dec 1, 2011 at 5:14 PM, Daniel Kulp wrote: >> On Thursday, December 01, 2011 5:06:26 PM rouble wrote: >>> CXF Gurus, >>> >>> If the client is older than the service, and sends in an attribute >>> that has been removed from a data type in the service. Spring/CXF/JAXB >>> throws an exception: >>> Caused by: javax.xml.bind.UnmarshalException: unexpected element ... >>> The recommended way to handle this on stackoverflow seems to be: >>> >>> >>> http://whileonefork.blogspot.com/2010/11/cxf-backwards-compatibility-ad= ding >>> .html >>> >>> But, like the original poster says, "Kind of lame to have to do really.= ". >>> >>> Is there a standard way to do this in CXF? >> >> Well, the easier thing to do is to set: >> set-jaxb-validation-event-handler , =A0 false >> >> instead of writing a full ValidationEventHandler. =A0 That will cause JA= XB to >> completely ignore anything it doesn't =A0expect to see. >> >> >> -- >> Daniel Kulp >> dkulp@apache.org - http://dankulp.com/blog >> Talend Community Coder - http://coders.talend.com >>