You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Asociación de Jóvenes Informáticos de Alcobendas <aj...@red-ajia.org> on 2003/08/26 10:47:07 UTC
Re: Object array And Document literal -
Hi,
How do you create a webservice wich return an array of objects with RPC ??
I just tried to return an array of Bean objects (Object[]) but I cannot read
them.
Could u help me please ??
----- Original Message -----
From: "Balaji D L" <ba...@yahoo.com>
To: <ax...@xml.apache.org>
Sent: Tuesday, July 01, 2003 12:15 PM
Subject: Object array And Document literal -
> Hi,
> Have any one tried to create a webservice which
> returns an array of objects in document/literal style.
> I'm able to do it with RPC style, but with
> document/literal style I'm getting the below exception
> when I try to consume the service
> Referenced type
> 'http://schemas.xmlsoap.org/soap/encoding/:Array'
> valid only for encoded SOAP.
> The generated WSDL is still using soapenc:arrayType
> for encoding the arrays, which i think shoudn't be
> right for a document/literal based service.
> Could someone please help me to solvet this problem ?
>
> thank you.
> Regards
> Balaji
>
>
> http://mobile.yahoo.com.au - Yahoo! Mobile
> - Check & compose your email via SMS on your Telstra or Vodafone mobile.
Re: Object array And Document literal -
Posted by Anne Thomas Manes <an...@manes.net>.
You need to define your own array type in the <types> section of your WSDL
file.
At 10:47 AM 8/26/2003 +0200, you wrote:
>Hi,
>
>How do you create a webservice wich return an array of objects with RPC ??
>
>I just tried to return an array of Bean objects (Object[]) but I cannot read
>them.
>
>Could u help me please ??
>
>----- Original Message -----
>From: "Balaji D L" <ba...@yahoo.com>
>To: <ax...@xml.apache.org>
>Sent: Tuesday, July 01, 2003 12:15 PM
>Subject: Object array And Document literal -
>
>
> > Hi,
> > Have any one tried to create a webservice which
> > returns an array of objects in document/literal style.
> > I'm able to do it with RPC style, but with
> > document/literal style I'm getting the below exception
> > when I try to consume the service
> > Referenced type
> > 'http://schemas.xmlsoap.org/soap/encoding/:Array'
> > valid only for encoded SOAP.
> > The generated WSDL is still using soapenc:arrayType
> > for encoding the arrays, which i think shoudn't be
> > right for a document/literal based service.
> > Could someone please help me to solvet this problem ?
> >
> > thank you.
> > Regards
> > Balaji
> >
> >
> > http://mobile.yahoo.com.au - Yahoo! Mobile
> > - Check & compose your email via SMS on your Telstra or Vodafone mobile.