This is best done using Schema validation, I'd have thought?
Henri Gomez wrote:
> Hi to all,
>
> How could we specify via JAXB limit in strings ?
>
> For instance, I need to indicate in my wsdl (I'm using JAX WS 2.1)
> that some strings shouldn't me more than X chars long.
>
> I didn't see how I could set this property using annotations and
> advice is very welcome.
>
> Regards and thanks for your help
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>