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* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 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: [EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>
    For additional commands, e-mail: [EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>




--
Amila Suriarachchi,
WSO2 Inc.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to