axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Suriarachchi" <amilasuriarach...@gmail.com>
Subject Re: WSDL problem
Date Mon, 03 Sep 2007 05:40:44 GMT
Axis1 supports rpc/encoded so it handles arrays like that. but Axis2 does
not.
So the way you have to specify an array in axis2 is the way I have given
you.

Amila.

On 8/31/07, mchmiel <mchmiel21@tlen.pl> wrote:
>
> Why this definition doeas not use the soapenc:Array
>
> i looked throuh several examples and this is the right way:-)
> <xsd:complexType name="ArrayOfstring">
>                     <xsd:complexContent>
>                         <xsd:restriction base="soapenc:Array">
>                             <xsd:attribute ref="soapenc:arrayType"
>                                 wsdl:arrayType="xsd:string[]" />
>                         </xsd:restriction>
>                     </xsd:complexContent>
>                 </xsd:complexType>
>
> in axis1 wsdl tool
> generates something like this
>
>      <xsd:complexType name="ArrayOfstring">
>                     <xsd:complexContent>
>                         <xsd:restriction base="soapenc:Array">
>                             <xsd:attribute ref="soapenc:arrayType"
>                                 wsdl:arrayType="xsd:string[]" />
>                         </xsd:restriction>
>                     </xsd:complexContent>
>                 </xsd:complexType>
>
>
>
> Amila Suriarachchi pisze:
> > <xsd:complexType name="ArrayType">
> >         <xsd:sequence>
> >             <xsd:element name="stringArray" minOccurs="0"
> > maxOccurs="unbounded" type="xsd:string"/>
> >         </xsd:sequence>
> >     </xsd:complexType>
> >
> > Amila.
> >
> > On 8/31/07, *mchmiel* <mchmiel21@tlen.pl <mailto:mchmiel21@tlen.pl>>
> > wrote:
> >
> >     I am using a WTP plugin for editing WSDL
> >
> >     I tried to define my String array
> >     like this
> >
> >                 <xsd:complexType name="ArrayOfstring">
> >                         <xsd:complexContent>
> >                             <xsd:restriction base="soapenc:Array">
> >                                 <xsd:attribute ref="soapenc:arrayType"
> >                                     wsdl:arrayType="xsd:string[]" />
> >                             </xsd:restriction>
> >                         </xsd:complexContent>
> >                     </xsd:complexType>
> >
> >     I also needed to add
> >
> >     <xsd:import
> >                     namespace="http://schemas.xmlsoap.org/soap/encoding/
> >     <http://schemas.xmlsoap.org/soap/encoding/>"/>
> >
> >     and now i get warning about restriction tag.
> >
> >     and I cannot generate a WebService Skeleton
> >
> >     an ideas hot to define a string[] or any oder complex type array?
> >
> >
> >
> ---------------------------------------------------------------------
> >     To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >     <mailto:axis-user-unsubscribe@ws.apache.org>
> >     For additional commands, e-mail: axis-user-help@ws.apache.org
> >     <mailto:axis-user-help@ws.apache.org>
> >
> >
> >
> >
> > --
> > Amila Suriarachchi,
> > WSO2 Inc.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

Mime
View raw message