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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to