You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Daniel Kulp <dk...@apache.org> on 2009/12/03 21:42:11 UTC
Re: CXF bean property validation
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
dkulp@apache.org
http://www.dankulp.com/blog