|
From: Robert H. <rh...@ce...> - 2012-05-28 14:55:43
|
Hello, We're using jibx in our web services generating java classes from xsd schema using codeGen. Our clients sometimes send us request not valid according schema (e.g. string elements are longer than restriction@maxLength allows in the schema via respective SimpleType). We need to truncate such elements to allowed length. I know we can use (de)serializer method for doing that but there is necessary to pass maxLength parameter to the method from xsd somehow. Is there any way how to do it automatically? E.g. any hook to codeGen etc. Our schema is really big and adding maxLength parameter manually into generated binding would be really overkill. Is there any other way to do the task? Thanks for any idea. Robert |