| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 |
<wsdl:definitions |
|---|
| 3 |
name="simpleContent" |
|---|
| 4 |
targetNamespace="urn:www.example.org:simpleContent" |
|---|
| 5 |
xmlns="http://schemas.xmlsoap.org/wsdl/" |
|---|
| 6 |
xmlns:tns="urn:www.example.org:simpleContent" |
|---|
| 7 |
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" |
|---|
| 8 |
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" |
|---|
| 9 |
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" |
|---|
| 10 |
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
|---|
| 11 |
|
|---|
| 12 |
<wsdl:types> |
|---|
| 13 |
<schema targetNamespace="urn:www.example.org:simpleContent" |
|---|
| 14 |
xmlns="http://www.w3.org/2001/XMLSchema"> |
|---|
| 15 |
|
|---|
| 16 |
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> |
|---|
| 17 |
|
|---|
| 18 |
<element name="Address"> |
|---|
| 19 |
<complexType> |
|---|
| 20 |
<sequence> |
|---|
| 21 |
<element name="list" type="tns:PhoneList"/> |
|---|
| 22 |
<element name="blah" type="xsd:string"/> |
|---|
| 23 |
</sequence> |
|---|
| 24 |
</complexType> |
|---|
| 25 |
</element> |
|---|
| 26 |
|
|---|
| 27 |
<complexType name="PhoneList"> |
|---|
| 28 |
<sequence> |
|---|
| 29 |
<element name="phone" type="tns:PhoneNumber" minOccurs="0" |
|---|
| 30 |
maxOccurs="unbounded" /> |
|---|
| 31 |
</sequence> |
|---|
| 32 |
<attribute name="default" type="xsd:string" /> |
|---|
| 33 |
</complexType> |
|---|
| 34 |
|
|---|
| 35 |
<element name="PhoneNumberElement" type="tns:PhoneNumber" /> |
|---|
| 36 |
<complexType name="PhoneNumber"> |
|---|
| 37 |
<simpleContent> |
|---|
| 38 |
<extension base="xsd:string"> |
|---|
| 39 |
<attribute name="type" type="tns:PhoneNumberType" use="required" /> |
|---|
| 40 |
</extension> |
|---|
| 41 |
</simpleContent> |
|---|
| 42 |
</complexType> |
|---|
| 43 |
|
|---|
| 44 |
<simpleType name="PhoneNumberType"> |
|---|
| 45 |
<restriction base="xsd:string"> |
|---|
| 46 |
<enumeration value="Fax" /> |
|---|
| 47 |
<enumeration value="Home" /> |
|---|
| 48 |
<enumeration value="Mobile" /> |
|---|
| 49 |
<enumeration value="Office" /> |
|---|
| 50 |
<enumeration value="Pager" /> |
|---|
| 51 |
</restriction> |
|---|
| 52 |
</simpleType> |
|---|
| 53 |
</schema> |
|---|
| 54 |
</wsdl:types> |
|---|
| 55 |
|
|---|
| 56 |
<wsdl:message name="echoIn"> |
|---|
| 57 |
<wsdl:part name="parameters" element="tns:Address" /> |
|---|
| 58 |
</wsdl:message> |
|---|
| 59 |
<wsdl:message name="echoOut"> |
|---|
| 60 |
<wsdl:part name="parameters" element="tns:Address" /> |
|---|
| 61 |
</wsdl:message> |
|---|
| 62 |
|
|---|
| 63 |
<wsdl:portType name="simpleContentService"> |
|---|
| 64 |
<wsdl:operation name="echo"> |
|---|
| 65 |
<wsdl:input message="tns:echoIn" /> |
|---|
| 66 |
<wsdl:output message="tns:echoOut" /> |
|---|
| 67 |
</wsdl:operation> |
|---|
| 68 |
</wsdl:portType> |
|---|
| 69 |
|
|---|
| 70 |
<wsdl:binding name="simpleContentBinding" type="tns:simpleContentService"> |
|---|
| 71 |
<wsdlsoap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> |
|---|
| 72 |
<wsdl:operation name="echo"> |
|---|
| 73 |
<wsdlsoap:operation soapAction="urn:www.example.org:simpleContent:echo" style="document" /> |
|---|
| 74 |
<wsdl:input><wsdlsoap:body use="literal" /></wsdl:input> |
|---|
| 75 |
<wsdl:output><wsdlsoap:body use="literal" /></wsdl:output> |
|---|
| 76 |
</wsdl:operation> |
|---|
| 77 |
</wsdl:binding> |
|---|
| 78 |
|
|---|
| 79 |
<wsdl:service> |
|---|
| 80 |
<wsdl:port name="simpleContentPort" binding="tns:simpleContentBinding"> |
|---|
| 81 |
<wsdlsoap:address location="http://localhost:17171/" /> |
|---|
| 82 |
</wsdl:port> |
|---|
| 83 |
</wsdl:service> |
|---|
| 84 |
</wsdl:definitions> |
|---|