All right, something was telling me it was a "feature", not a bug.
I'll try to change it to a XmlElement.
I also thought that I could let my MessagenErro with only one String,
instead of an array, and make the class itself an array inside the
WSException class, if that works, it would do the trick.
Thanks
On Wed, Apr 30, 2008 at 7:34 AM, Ian Roberts <[EMAIL PROTECTED]> wrote:
> marcelo melo wrote:
>
> > @XmlAttribute
> > protected String[] erros = new String[]{};
> >
>
> Is the schema fixed or can you change this to an @XmlElement instead of an
> attribute? An array-typed field mapped with XmlAttribute corresponds to an
> <xsd:list> in the schema, which means a whitespace-separated list of simple
> type values - that's why it's splitting your string on whitespace.
>
> Ian
>
> --
> Ian Roberts | Department of Computer Science
> [EMAIL PROTECTED] | University of Sheffield, UK
>