Here is how I declare String[] in WSDL. It seems to work.

    <complexType name="ArrayOfString"> 
      <complexContent> 
          <restriction base="SOAP-ENC:Array">
            <attribute name="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/>
          </restriction> 
      </complexContent> 
    </complexType> 

> 
> I haven�t solve the string-array problem but I�ve found a 
> second form of
> wsdl-declaration of the complex type for String[].
> 
> I�ve used:
> 
> <xsd:complexType name='ArrayOfstring'>
>         <xsd:complexContent>
>           <xsd:restriction base='SOAP-ENC:Array'>
>             <xsd:attribute ref='SOAP-ENC:arrayType'
> wsdl:arrayType='xsd:string[]'/>
>           </xsd:restriction>
>         </xsd:complexContent>
>       </xsd:complexType>
> 
> And the server send type-conversion-erros.
> 
> Now I�ve found:
> 
>  <xsd:complexType name='ArrayOfstring'>
>       <xsd:complexContent mixed='false'>
>           <xsd:restriction base='SOAP-ENC:Array'>
>             <xsd:sequence>
>               <xsd:element minOccurs='0' maxOccurs='unbounded'
> name='String' type='xsd:string' />
>             </xsd:sequence>
>           </xsd:restriction>
>          </xsd:complexContent>
>       </xsd:complexType>
> 
> What is the meaning of the second one. What is the better way?
> 
  • String[] Oliver Rettig
    • Hansen, Richard

Reply via email to