<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
  name="simpleContent"
  targetNamespace="urn:www.example.org:simpleContent"
  xmlns="http://schemas.xmlsoap.org/wsdl/"
  xmlns:tns="urn:www.example.org:simpleContent"
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <wsdl:types>
    <schema targetNamespace="urn:www.example.org:simpleContent"
      xmlns="http://www.w3.org/2001/XMLSchema">

      <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

      <element name="Address">
        <complexType>
          <sequence>
            <element name="list" type="tns:PhoneList"/>
            <element name="blah" type="xsd:string"/>
          </sequence>
        </complexType>
      </element>

      <complexType name="PhoneList">
        <sequence>
          <element name="phone" type="tns:PhoneNumber" minOccurs="0"
            maxOccurs="unbounded" />
        </sequence>
        <attribute name="default" type="xsd:string" />
      </complexType>

      <element name="PhoneNumberElement" type="tns:PhoneNumber" />
      <complexType name="PhoneNumber">
        <simpleContent>
          <extension base="xsd:string">
            <attribute name="type" type="tns:PhoneNumberType" use="required" />
          </extension>
        </simpleContent>
      </complexType>

      <simpleType name="PhoneNumberType">
        <restriction base="xsd:string">
          <enumeration value="Fax" />
          <enumeration value="Home" />
          <enumeration value="Mobile" />
          <enumeration value="Office" />
          <enumeration value="Pager" />
        </restriction>
      </simpleType>
    </schema>
  </wsdl:types>

  <wsdl:message name="echoIn">
    <wsdl:part name="parameters" element="tns:Address" />
  </wsdl:message>
  <wsdl:message name="echoOut">
    <wsdl:part name="parameters" element="tns:Address" />
  </wsdl:message>

  <wsdl:portType name="simpleContentService">
    <wsdl:operation name="echo">
      <wsdl:input message="tns:echoIn" />
      <wsdl:output message="tns:echoOut" />
    </wsdl:operation>
  </wsdl:portType>

  <wsdl:binding name="simpleContentBinding" type="tns:simpleContentService">
    <wsdlsoap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    <wsdl:operation name="echo">
      <wsdlsoap:operation soapAction="urn:www.example.org:simpleContent:echo" style="document" />
      <wsdl:input><wsdlsoap:body use="literal" /></wsdl:input>
      <wsdl:output><wsdlsoap:body use="literal" /></wsdl:output>
    </wsdl:operation>
  </wsdl:binding>

  <wsdl:service>
    <wsdl:port name="simpleContentPort" binding="tns:simpleContentBinding">
      <wsdlsoap:address location="http://localhost:17171/" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
