| 1 |
<?xml version="1.0" encoding="utf-8"?> |
|---|
| 2 |
<definitions name="ping_service" |
|---|
| 3 |
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" |
|---|
| 4 |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
|---|
| 5 |
xmlns:tns="urn:example.com:simpletype" |
|---|
| 6 |
targetNamespace="urn:example.com:simpletype" |
|---|
| 7 |
xmlns="http://schemas.xmlsoap.org/wsdl/"> |
|---|
| 8 |
<types> |
|---|
| 9 |
<xsd:schema targetNamespace="urn:example.com:simpletype"> |
|---|
| 10 |
<xsd:element name="ruby"> |
|---|
| 11 |
<xsd:complexType> |
|---|
| 12 |
<xsd:sequence> |
|---|
| 13 |
<xsd:element minOccurs="1" maxOccurs="1" name="myversion" type="tns:myversion"/> |
|---|
| 14 |
<xsd:element minOccurs="0" maxOccurs="1" name="date" type="xsd:dateTime"/> |
|---|
| 15 |
</xsd:sequence> |
|---|
| 16 |
</xsd:complexType> |
|---|
| 17 |
</xsd:element> |
|---|
| 18 |
|
|---|
| 19 |
<xsd:simpleType name="myversion"> |
|---|
| 20 |
<xsd:restriction base="xsd:string"> |
|---|
| 21 |
<xsd:enumeration value="1.6"/> |
|---|
| 22 |
<xsd:enumeration value="1.8"/> |
|---|
| 23 |
<xsd:enumeration value="1.9"/> |
|---|
| 24 |
</xsd:restriction> |
|---|
| 25 |
</xsd:simpleType> |
|---|
| 26 |
|
|---|
| 27 |
<xsd:element name="myid" type="tns:ID"/> |
|---|
| 28 |
|
|---|
| 29 |
<xsd:simpleType name="ID"> |
|---|
| 30 |
<xsd:restriction base="xsd:string"> |
|---|
| 31 |
<xsd:length value="18"/> |
|---|
| 32 |
<xsd:pattern value='[a-zA-Z0-9]{18}'/> |
|---|
| 33 |
</xsd:restriction> |
|---|
| 34 |
</xsd:simpleType> |
|---|
| 35 |
|
|---|
| 36 |
<xsd:simpleType name="stateType"> |
|---|
| 37 |
<xsd:restriction base="xsd:string"> |
|---|
| 38 |
<xsd:enumeration value="stateType"/> |
|---|
| 39 |
</xsd:restriction> |
|---|
| 40 |
</xsd:simpleType> |
|---|
| 41 |
|
|---|
| 42 |
<xsd:simpleType name="zipIntType"> |
|---|
| 43 |
<xsd:restriction base="xsd:int"> |
|---|
| 44 |
<xsd:enumeration value="123"/> |
|---|
| 45 |
</xsd:restriction> |
|---|
| 46 |
</xsd:simpleType> |
|---|
| 47 |
|
|---|
| 48 |
<xsd:simpleType name="zipUnion"> |
|---|
| 49 |
<xsd:union memberTypes="tns:stateType tns:zipIntType"/> |
|---|
| 50 |
</xsd:simpleType> |
|---|
| 51 |
|
|---|
| 52 |
<xsd:element name="zip" type="tns:zipUnion"/> |
|---|
| 53 |
|
|---|
| 54 |
</xsd:schema> |
|---|
| 55 |
</types> |
|---|
| 56 |
|
|---|
| 57 |
<message name="ping_in"> |
|---|
| 58 |
<part name="parameters" element="tns:ruby"/> |
|---|
| 59 |
</message> |
|---|
| 60 |
|
|---|
| 61 |
<message name="ping_out"> |
|---|
| 62 |
<part name="parameters" type="xsd:string"/> |
|---|
| 63 |
</message> |
|---|
| 64 |
|
|---|
| 65 |
<message name="ping_id_in"> |
|---|
| 66 |
<part name="parameters" element="tns:myid"/> |
|---|
| 67 |
</message> |
|---|
| 68 |
|
|---|
| 69 |
<message name="ping_id_out"> |
|---|
| 70 |
<part name="parameters" element="tns:myid"/> |
|---|
| 71 |
</message> |
|---|
| 72 |
|
|---|
| 73 |
<message name="versionmsg"> |
|---|
| 74 |
<part name="myversion" element="tns:myversion"/> |
|---|
| 75 |
</message> |
|---|
| 76 |
|
|---|
| 77 |
<portType name="ping_port_type"> |
|---|
| 78 |
<operation name="ping"> |
|---|
| 79 |
<input message="tns:ping_in"/> |
|---|
| 80 |
<output message="tns:ping_out"/> |
|---|
| 81 |
</operation> |
|---|
| 82 |
|
|---|
| 83 |
<operation name="ping_id"> |
|---|
| 84 |
<input message="tns:ping_id_in"/> |
|---|
| 85 |
<output message="tns:ping_id_out"/> |
|---|
| 86 |
</operation> |
|---|
| 87 |
|
|---|
| 88 |
<operation name="echo_version"> |
|---|
| 89 |
<input message="tns:versionmsg"/> |
|---|
| 90 |
<output message="tns:versionmsg"/> |
|---|
| 91 |
</operation> |
|---|
| 92 |
</portType> |
|---|
| 93 |
|
|---|
| 94 |
<binding name="ping_binding" type="tns:ping_port_type"> |
|---|
| 95 |
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> |
|---|
| 96 |
<operation name="ping"> |
|---|
| 97 |
<soap:operation soapAction="urn:example.com:simpletype:ping" style="document"/> |
|---|
| 98 |
<input><soap:body use="literal"/></input> |
|---|
| 99 |
<output><soap:body use="literal"/></output> |
|---|
| 100 |
</operation> |
|---|
| 101 |
|
|---|
| 102 |
<operation name="ping_id"> |
|---|
| 103 |
<soap:operation soapAction="urn:example.com:simpletype:ping_id" style="document"/> |
|---|
| 104 |
<input><soap:body use="literal"/></input> |
|---|
| 105 |
<output><soap:body use="literal"/></output> |
|---|
| 106 |
</operation> |
|---|
| 107 |
</binding> |
|---|
| 108 |
|
|---|
| 109 |
<service name="ping_service"> |
|---|
| 110 |
<port name="ping_port" binding="tns:ping_binding"> |
|---|
| 111 |
<soap:address location="http://localhost:10080"/> |
|---|
| 112 |
</port> |
|---|
| 113 |
</service> |
|---|
| 114 |
</definitions> |
|---|