2014-02-17 16:52 GMT+01:00 Sergey Beryozkin <[email protected]>: > Hi >> >> How I can do this ? >> > So you basically would like the unrecognized 'size' property be ignored ? > JAXB, without a schema, may let you do it as is, and in addition to that you > should be able to use 'inDropElements' property. You can alsoi register a > custom XMLStreamReader if needed, customizing it even further > > Does it answer your question ? > > Cheers, Sergey
Thanks, Sergey. I think I cannot use 'inDropElement' because I don't know which new fields the webservice will receive in the future. I'll try to disable schema-validation and test your first solution In any case, I'm going to need to format the message because the client is sending a non-valid JSON message. Where is the best place "to fix" the incoming messages ? JAX-RS Filters ? Override JSON provider ( in this case, what method ) ? For me it's cleaner using a JAX-RS Filters, because a filter performs all the dirty work and I don't modify the JSON provider But I'm not sure Thanks and regards > > >> or >> >> - any ideas ? >> >> Thanks and regards >> > > > -- > Sergey Beryozkin > > Talend Community Coders > http://coders.talend.com/ > > Blog: http://sberyozkin.blogspot.com
