cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "marcelo melo" <marcelotm...@gmail.com>
Subject Re: Returning an array of errors
Date Thu, 01 May 2008 00:12:45 GMT
Well, just replaced with XmlElement and worked like a charm!

Thanks a lot!

On Wed, Apr 30, 2008 at 3:33 PM, marcelo melo <marcelotmelo@gmail.com> wrote:
> 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 <i.roberts@dcs.shef.ac.uk> 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
>  >  i.roberts@dcs.shef.ac.uk  | University of Sheffield, UK
>  >
>

Mime
View raw message