Hi, In my XML Schema I have an integer field named messageVersion, with a default-value. When I generate java code from this schema, I the default value is properly set for this field. However, the corresponding boolean _hasMessageVersion isn't set, meaning it's always 'false' unless explicitly set.
Therefore when an incoming message is validated that doesn't contain the field messageVersion, a validation error occurs. If I would do the same with a String type field, no validation error occurs. My conclusion is that when a field with a java primitive type (like integer or boolean) has a default value, the corresponding boolean (_hasXXXX) should be initialized to 'true' in it's declaration. My workaround for now is to make the field optional in the XML Schema (minOccurs="0"). I don't know if this is already a known issue, or should I try to file an issue for it? With regards, --Tim THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev