Try replacing the types with this: The targetNamespace should be the same as
xsd and arrayType should be xsd:string.
<types>
<xsd:schema targetNamespace="http://www.w3.org/2001/XMLSchema"
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
<xsd:complexType name='ArrayOfstring'>
<xsd:complexContent>
<xsd:restriction base='SOAP-ENC:Array'>
<xsd:attribute ref="SOAP-ENC:arrayType"
arrayType="xsd:string"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
</types>
cheers
-kims-
> -----Opprinnelig melding-----
> Fra: Oliver Rettig [mailto:[EMAIL PROTECTED]]
> Sendt: 20. juni 2001 10:37
> Til: soap
> Emne: wsdl arrayOfString ms-soap-client
>
>
> Hallo,
>
> I´ve the following wsdl-file for access of my apache
> soap-server with a
> ms-client:
>
> <?xml version="1.0" encoding='UTF-8'?>
>
> <definitions name="urn:KlickBlickOperator"
> targetNamespace="urn:KlickBlickOperator"
> xmlns:typens="urn:xml-klickblick"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns="http://schemas.xmlsoap.org/wsdl/">
>
> <types>
> <xsd:schema targetNamespace="urn:xml-klickblick"
> xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
> <xsd:complexType name='ArrayOfstring'>
> <xsd:complexContent>
> <xsd:restriction base='SOAP-ENC:Array'>
> <xsd:attribute ref="SOAP-ENC:arrayType"
> arrayType="xsd:string[]"/>
> </xsd:restriction>
> </xsd:complexContent>
> </xsd:complexType>
> </xsd:schema>
> </types>
>
> <!-- message declns -->
> <message name='dummyResponse'>
> <part name='Result' type='xsd:string'/>
> </message>
> <message name='dummyRequest'>
> <part name='arg0' type='xsd:ArrayOfstring'/>
> </message>
>
> <!-- port type declns -->
> <portType name="KlickBlickOperator">
> <operation name='dummy'>
> <input message='dummyRequest'/>
> <output message='dummyResponse'/>
> </operation>
> </portType>
>
> <!-- binding declns -->
> <binding name="KlickBlickSOAPBinding" type="KlickBlickOperator">
> <soap:binding style="rpc"
> transport="http://schemas.xmlsoap.org/soap/http"/>
> <operation name="dummy">
> <soap:operation soapAction=""/>
> <input>
> <soap:body use="encoded"
> namespace="urn:KlickBlickOperator"
>
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
> </input>
> <output>
> <soap:body use="encoded"
> namespace="urn:KlickBlickOperator"
>
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
> </output>
> </operation>
> </binding>
>
> <!-- service decln -->
> <service name="KlickBlickOperator">
> <port name="KlickBlickOperator" binding="KlickBlickSOAPBinding">
> <soap:address
> location="http://server1.klickblick.de:8080/soap/servlet/rpcrouter"/>
> </port>
> </service>
>
> </definitions>
>
> and I get the error-message on my client:
>
> Canont initialize SoapClient, SoapMapper: The schema definition with a
> targetnamespace of
> http://www.w3.org/2001/XMLSchema for SoapMapper ArrayOfstring
> could not
> be found.
>
> What to do? Have I forgotting something to declare in the wsdl-file?
> ArrayOfString should be my own type.
>
> Please help.
>
> Oliver
>
>
>