axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mchmiel <mchmie...@tlen.pl>
Subject Re: WSDL problem
Date Fri, 31 Aug 2007 13:03:20 GMT
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


Mime
View raw message