Hi Daniel,

Thanks for that update. And where do you specify this flag:
    set-jaxb-validation-event-handler ,   false

tia,
rouble

On Thu, Dec 1, 2011 at 5:14 PM, Daniel Kulp <[email protected]> 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-adding
>> .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 ,   false
>
> instead of writing a full ValidationEventHandler.   That will cause JAXB to
> completely ignore anything it doesn't  expect to see.
>
>
> --
> Daniel Kulp
> [email protected] - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>

Reply via email to