You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2001/10/26 12:55:38 UTC

cvs commit: xml-axis/java/test/import_ Import.wsdl Import.xsd ImportBinding1.wsdl ImportBinding2.wsdl ImportInterface.wsdl ImportMessages.wsdl

butek       01/10/26 03:55:38

  Added:       java/test/import_ Import.wsdl Import.xsd ImportBinding1.wsdl
                        ImportBinding2.wsdl ImportInterface.wsdl
                        ImportMessages.wsdl
  Log:
  Add import test.  Fix emitter and build files to make it work.
  
  Revision  Changes    Path
  1.1                  xml-axis/java/test/import_/Import.wsdl
  
  Index: Import.wsdl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <definitions
      targetNamespace="urn:import"
      xmlns="http://schemas.xmlsoap.org/wsdl/"
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:b1="urn:importBinding1"
      xmlns:b2="urn:importBinding2">
  
  <import
      location="test/import_/ImportBinding1.wsdl"
      namespace="urn:importBinding1">
  </import>
  
  <import
      location="test/import_/ImportBinding2.wsdl"
      namespace="urn:importBinding2">
  </import>
  
  <service name="ImportService">
    <documentation>Import test</documentation>
    <port name="ImportTest1" binding="b1:ImportBinding1">
      <soap:address location="http://localhost:8080/axis/services/ImportTest1"/>
    </port>
    <port name="ImportTest2" binding="b2:ImportBinding2">
      <soap:address location="http://localhost:8080/axis/services/ImportTest2"/>
    </port>
  </service>
  
  </definitions>
  
  
  
  1.1                  xml-axis/java/test/import_/Import.xsd
  
  Index: Import.xsd
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <schema
    targetNamespace="urn:types.import.test"
      xmlns="http://www.w3.org/2001/XMLSchema">
  
  <types>
    <schema
      targetNamespace="urn:types.import.test"
      xmlns:tns="urn:types.import.test"
      xmlns="http://www.w3.org/2001/XMLSchema/">
  
      <complexType name="PhoneNumber">
        <all>
          <element name="areaCode" type="int"/>
          <element name="exchange" type="string"/>
          <element name="number" type="string"/>
        </all>
      </complexType>
  
      <complexType name="Address">
        <all>
          <element name="streetNum" type="int"/>
          <element name="streetName" type="string"/>
          <element name="city" type="string"/>
          <element name="state" type="string"/>
          <element name="zip" type="int"/>
          <element name="phoneNumber" type="tns:PhoneNumber"/>
        </all>
      </complexType>
  
    </schema>
  </types>
  </schema>
  
  
  
  1.1                  xml-axis/java/test/import_/ImportBinding1.wsdl
  
  Index: ImportBinding1.wsdl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <definitions
      targetNamespace="urn:importBinding1"
      xmlns="http://schemas.xmlsoap.org/wsdl/"
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:iface="urn:iface.import.test">
  
  <import
      location="test/import_/ImportInterface.wsdl"
      namespace="urn:iface.import.test">
  </import>
  
  <binding name="ImportBinding1" type="iface:Import">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="addEntry">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Import" use="encoded"/>
      </input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Import" use="encoded"/>
      </output>
    </operation>
    <operation name="getAddressFromName">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Import" use="encoded"/>
      </input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Import" use="encoded"/>
      </output>
    </operation>
  </binding>
  </definitions>
  
  
  
  1.1                  xml-axis/java/test/import_/ImportBinding2.wsdl
  
  Index: ImportBinding2.wsdl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <definitions
      targetNamespace="urn:importBinding2"
      xmlns="http://schemas.xmlsoap.org/wsdl/"
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:iface="urn:iface.import.test">
  
  <import
      location="test/import_/ImportInterface.wsdl"
      namespace="urn:iface.import.test">
  </import>
  
  <binding name="ImportBinding2" type="iface:Import">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="addEntry">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Import" use="encoded"/>
      </input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Import" use="encoded"/>
      </output>
    </operation>
    <operation name="getAddressFromName">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Import" use="encoded"/>
      </input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Import" use="encoded"/>
      </output>
    </operation>
  </binding>
  </definitions>
  
  
  
  1.1                  xml-axis/java/test/import_/ImportInterface.wsdl
  
  Index: ImportInterface.wsdl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <definitions
      targetNamespace="urn:iface.import.test"
      xmlns="http://schemas.xmlsoap.org/wsdl/"
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:messages="urn:messages.import.test">
  
  <import
      location="test/import_/ImportMessages.wsdl"
      namespace="urn:messages.import.test">
  </import>
  
  <portType name="Import">
    <operation name="addEntry">
      <input message="messages:InaddEntryRequest"/>
      <output message="messages:empty"/>
    </operation>
  
    <operation name="getAddressFromName">
      <input message="messages:IngetAddressFromNameRequest"/>
      <output message="messages:OutgetAddressFromNameResponse"/>
    </operation>
  </portType>
  
  </definitions>
  
  
  
  1.1                  xml-axis/java/test/import_/ImportMessages.wsdl
  
  Index: ImportMessages.wsdl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <definitions
      targetNamespace="urn:messages.import.test"
      xmlns="http://schemas.xmlsoap.org/wsdl/"
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:addressTypes="urn:types.import.test">
  
  <import
      location="test/import_/Import.xsd"
      namespace="urn:types.import.test">
  </import>
  
  <message name="empty"/>
  
  <message name="InaddEntryRequest">
    <part name="key" type="xsd:string"/>
    <part name="value" type="addressTypes:Address"/>
  </message>
  
  <message name="IngetAddressFromNameRequest">
    <part name="key" type="xsd:string"/>
  </message>
  
  <message name="OutgetAddressFromNameResponse">
    <part name="value" type="addressTypes:Address"/>
  </message>
  
  </definitions>