You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by marcelo melo <ma...@gmail.com> on 2008/05/01 02:12:45 UTC
Re: Returning an array of errors
Well, just replaced with XmlElement and worked like a charm!
Thanks a lot!
On Wed, Apr 30, 2008 at 3:33 PM, marcelo melo <ma...@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....@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
> >
>