<?xml version="1.0" encoding="utf-8" ?>
<definitions name="CustomerService"
    targetNamespace= "http://soa-in-practice.com/wsdl"
    xmlns:tns="http://soa-in-practice.com/wsdl"
    xmlns:xsd1="http://soa-in-practice.com/xsd"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns="http://schemas.xmlsoap.org/wsdl/">

  <documentation>
    Example WSDL 1.1 Web Service for "SOA in Practice"
    see http://soa-in-practice.com/customer11.html
  </documentation>

  <types>
    <xsd:schema
        targetNamespace="http://soa-in-practice.com/xsd"
        xmlns="http://soa-in-practice.com/xsd">

      <xsd:element name="getCustomerAddress">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="customerID" type="xsd:long"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>

      <xsd:element name="getCustomerAddressResponse" type="Address"/>
      <xsd:complexType name="Address">
          <xsd:sequence>
            <xsd:element name="street" type="xsd:string"/>
            <xsd:element name="city" type="xsd:string"/>
            <xsd:element name="zipCode" type="xsd:string"/>
          </xsd:sequence>
      </xsd:complexType>

    </xsd:schema>
  </types>

  <message name="getCustomerAddressInput">
    <part name="params" element="xsd1:getCustomerAddress"/>
  </message>
  <message name="getCustomerAddressOutput">
    <part name="params" element="xsd1:getCustomerAddressResponse"/>
  </message>

  <portType name="CustomerInterface" >
    <operation name="getCustomerAddress">
        <input message="tns:getCustomerAddressInput" />
        <output message="tns:getCustomerAddressOutput" />
    </operation>
  </portType>

  <binding name="CustomerSOAPBinding"
           type="tns:CustomerInterface" >
    <soap:binding style="document"
                  transport="http://schemas.xmlsoap.org/soap/http" />

    <operation name="getCustomerAddress">
      <soap:operation soapAction="http://soa-in-practice.com/getCustomerAddress" />
      <input>
        <soap:body use="literal" />
      </input>
      <output>
        <soap:body use="literal" />
      </output>
    </operation>

  </binding>

  <service name="CustomerService" >
    <port name="CustomerPort"
          binding="tns:CustomerSOAPBinding">
      <soap:address
          location="http://localhost:9999/customer11"/>
     </port>
  </service>

</definitions>

