Hi
On 20/09/12 11:36, tms.polgar wrote:
Hi,
I'm communicating with some SOAP webservices.
Unfortunately they change the response messages quite often, usually they
add some minor fields.
I'd like to make cxf able to handle this. If I have an unexpected new field,
at the moment I'm getting
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"",
local:"myNewField"). Expected elements are<{}subType>,<{}value>,<{}type>
As you can see I use JAXB for databinding.
Does anybody have any idea how to manage it?
I believe you can disable the validation of the incoming messages, or
configure JAXB or may be even CXF JAXB Data binding to ignore the
unknown elements - please check the archives.
A slightly more involved option is to use TransformFeature:
http://cxf.apache.org/docs/transformationfeature.html#TransformationFeature-Droppingoutputandinputelements
In this case it is "inDropElements" that has to be used
HTH, Sergey
Thank you.
Tamas
--
View this message in context:
http://cxf.547215.n5.nabble.com/Tolerate-extra-fields-in-response-tp5714284.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com