<?xml version="1.0" encoding="utf-8"?>
<definitions
    name="list"
    targetNamespace="urn:list"
    xmlns:tns="urn:list"
    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 elementFormDefault="unqualified" targetNamespace="urn:list">
      <xsd:simpleType name="langlistinline">
        <xsd:list>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:enumeration value="inlineruby" />
              <xsd:enumeration value="inlineperl" />
              <xsd:enumeration value="inlinepython" />
              <xsd:enumeration value="inlinesmalltalk" />
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:list>
      </xsd:simpleType>

      <xsd:simpleType name="language">
        <xsd:restriction base="xsd:string">
          <xsd:enumeration value="ruby" />
          <xsd:enumeration value="perl" />
          <xsd:enumeration value="python" />
          <xsd:enumeration value="smalltalk" />
        </xsd:restriction>
      </xsd:simpleType>

      <xsd:simpleType name="langlist">
        <xsd:list itemType="tns:language"/>
      </xsd:simpleType>

      <xsd:element name="echoele">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element minOccurs="0" maxOccurs="1" name="e1"
              type="tns:langlistinline" />
            <xsd:element minOccurs="0" maxOccurs="1" name="e2"
              type="tns:langlist" />
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>

      <xsd:element name="echo_response">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element minOccurs="0" maxOccurs="1" name="e1"
              type="tns:langlistinline" />
            <xsd:element minOccurs="0" maxOccurs="1" name="e2"
              type="tns:langlist" />
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>
  </types>

  <message name="echo_in">
    <part name="parameters" element="tns:echoele" />
  </message>
  <message name="echo_out">
    <part name="parameters" element="tns:echo_response" />
  </message>

  <portType name="list_porttype">
    <operation name="echo">
      <input message="tns:echo_in" />
      <output message="tns:echo_out" />
    </operation>
  </portType>

  <binding name="list_binding" type="tns:list_porttype">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    <operation name="echo">
      <soap:operation soapAction="urn:list:echo" style="document" />
      <input>
        <soap:body use="literal" />
      </input>
      <output>
        <soap:body use="literal" />
      </output>
    </operation>
  </binding>

  <service name="list_service">
    <port name="list_service_port" binding="tns:list_binding">
      <soap:address location="http://localhost:17171/" />
    </port>
  </service>
</definitions>
