You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Oliver Rettig <Ol...@telda.net> on 2001/06/20 10:36:59 UTC

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