The NORMAL way for this is to have all that defined in the schema and then turn on the schema validation. At parse time, the xml parser will validate the XML based on the schema and fail if invalid.
Only really works well for the xsd first cases though as JAXB doesn't provide enough annotations to really control all of that. Dan On Mon November 23 2009 12:07:41 pm vickatvuuch wrote: > Hi All, > > Does anybody know if there is a standard way to deal with property > validation? > For example if my request POJO has N properties can I somehow enforce > validation > of things such as String length, null, Not Null etc. Common stuff.. > Just don't want to reinvent the wheel in case CXF already has it built in? > > Thanks, > -Vitaly > -- Daniel Kulp [email protected] http://www.dankulp.com/blog
