| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 |
<wsdl:definitions |
|---|
| 3 |
name="abstract" |
|---|
| 4 |
targetNamespace="urn:www.example.org:abstract" |
|---|
| 5 |
xmlns="http://schemas.xmlsoap.org/wsdl/" |
|---|
| 6 |
xmlns:tns="urn:www.example.org:abstract" |
|---|
| 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:abstract" |
|---|
| 14 |
xmlns="http://www.w3.org/2001/XMLSchema"> |
|---|
| 15 |
|
|---|
| 16 |
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> |
|---|
| 17 |
|
|---|
| 18 |
<complexType name="Book"> |
|---|
| 19 |
<sequence> |
|---|
| 20 |
<element name="name" type="xsd:string"/> |
|---|
| 21 |
<element name="author" type="tns:Author"/> |
|---|
| 22 |
</sequence> |
|---|
| 23 |
</complexType> |
|---|
| 24 |
|
|---|
| 25 |
<element name="Author" type="tns:Author"/> |
|---|
| 26 |
<complexType abstract="true" name="Author"> |
|---|
| 27 |
<sequence> |
|---|
| 28 |
<element name="firstname" type="xsd:string"/> |
|---|
| 29 |
<element name="lastname" type="xsd:string"/> |
|---|
| 30 |
</sequence> |
|---|
| 31 |
</complexType> |
|---|
| 32 |
|
|---|
| 33 |
<complexType name="UserAuthor"> |
|---|
| 34 |
<complexContent> |
|---|
| 35 |
<extension base="tns:Author"> |
|---|
| 36 |
<sequence> |
|---|
| 37 |
<element name="userid" type="xsd:string"/> |
|---|
| 38 |
</sequence> |
|---|
| 39 |
</extension> |
|---|
| 40 |
</complexContent> |
|---|
| 41 |
</complexType> |
|---|
| 42 |
|
|---|
| 43 |
<complexType name="NonUserAuthor"> |
|---|
| 44 |
<complexContent> |
|---|
| 45 |
<extension base="tns:Author"> |
|---|
| 46 |
<sequence> |
|---|
| 47 |
<element name="nonuserid" type="xsd:string"/> |
|---|
| 48 |
</sequence> |
|---|
| 49 |
</extension> |
|---|
| 50 |
</complexContent> |
|---|
| 51 |
</complexType> |
|---|
| 52 |
|
|---|
| 53 |
<complexType name="BaseClass"> |
|---|
| 54 |
<sequence> |
|---|
| 55 |
<element name="id" type="xsd:unsignedInt" minOccurs="1" |
|---|
| 56 |
maxOccurs="1"/> |
|---|
| 57 |
</sequence> |
|---|
| 58 |
</complexType> |
|---|
| 59 |
|
|---|
| 60 |
<complexType name="DerivedClass1"> |
|---|
| 61 |
<complexContent> |
|---|
| 62 |
<extension base="tns:BaseClass"> |
|---|
| 63 |
<sequence> |
|---|
| 64 |
<element name="someVar1" type="xsd:string" |
|---|
| 65 |
minOccurs="0" maxOccurs="unbounded"/> |
|---|
| 66 |
</sequence> |
|---|
| 67 |
</extension> |
|---|
| 68 |
</complexContent> |
|---|
| 69 |
</complexType> |
|---|
| 70 |
|
|---|
| 71 |
<complexType name="DerivedClass2"> |
|---|
| 72 |
<complexContent> |
|---|
| 73 |
<extension base="tns:BaseClass"> |
|---|
| 74 |
<sequence> |
|---|
| 75 |
<element name="someVar2" type="xsd:string" |
|---|
| 76 |
minOccurs="0" maxOccurs="unbounded"/> |
|---|
| 77 |
</sequence> |
|---|
| 78 |
</extension> |
|---|
| 79 |
</complexContent> |
|---|
| 80 |
</complexType> |
|---|
| 81 |
</schema> |
|---|
| 82 |
</wsdl:types> |
|---|
| 83 |
|
|---|
| 84 |
<wsdl:message name="echoRequest"> |
|---|
| 85 |
<wsdl:part name="name" type="xsd:string"/> |
|---|
| 86 |
<wsdl:part name="author" type="tns:Author"/> |
|---|
| 87 |
</wsdl:message> |
|---|
| 88 |
|
|---|
| 89 |
<wsdl:message name="echoResponse"> |
|---|
| 90 |
<wsdl:part name="return" type="tns:Book"/> |
|---|
| 91 |
</wsdl:message> |
|---|
| 92 |
|
|---|
| 93 |
<wsdl:message name="echoLiteralRequest"> |
|---|
| 94 |
<wsdl:part name="author" element="tns:Author"/> |
|---|
| 95 |
</wsdl:message> |
|---|
| 96 |
|
|---|
| 97 |
<wsdl:message name="echoLiteralResponse"> |
|---|
| 98 |
<wsdl:part name="return" element="tns:Author"/> |
|---|
| 99 |
</wsdl:message> |
|---|
| 100 |
|
|---|
| 101 |
<wsdl:message name="echoDerivedRequest"> |
|---|
| 102 |
<wsdl:part name="parameter" type="tns:BaseClass"/> |
|---|
| 103 |
</wsdl:message> |
|---|
| 104 |
|
|---|
| 105 |
<wsdl:message name="echoDerivedResponse"> |
|---|
| 106 |
<wsdl:part name="return" type="tns:BaseClass"/> |
|---|
| 107 |
</wsdl:message> |
|---|
| 108 |
|
|---|
| 109 |
<wsdl:portType name="AbstractService"> |
|---|
| 110 |
<wsdl:operation name="echo" parameterOrder="obj typename"> |
|---|
| 111 |
<wsdl:input message="tns:echoRequest" name="echoRequest"/> |
|---|
| 112 |
<wsdl:output message="tns:echoResponse" name="echoResponse"/> |
|---|
| 113 |
</wsdl:operation> |
|---|
| 114 |
|
|---|
| 115 |
<wsdl:operation name="echoLiteral"> |
|---|
| 116 |
<wsdl:input message="tns:echoLiteralRequest"/> |
|---|
| 117 |
<wsdl:output message="tns:echoLiteralResponse"/> |
|---|
| 118 |
</wsdl:operation> |
|---|
| 119 |
|
|---|
| 120 |
<wsdl:operation name="echoDerived"> |
|---|
| 121 |
<wsdl:input message="tns:echoDerivedRequest" name="echoDerivedRequest"/> |
|---|
| 122 |
<wsdl:output message="tns:echoDerivedResponse" name="echoDerivedResponse"/> |
|---|
| 123 |
</wsdl:operation> |
|---|
| 124 |
</wsdl:portType> |
|---|
| 125 |
|
|---|
| 126 |
<wsdl:binding name="AbstractServiceSoapBinding" |
|---|
| 127 |
type="tns:AbstractService"> |
|---|
| 128 |
|
|---|
| 129 |
<wsdlsoap:binding transport="http://schemas.xmlsoap.org/soap/http"/> |
|---|
| 130 |
|
|---|
| 131 |
<wsdl:operation name="echo"> |
|---|
| 132 |
<wsdlsoap:operation style="rpc" soapAction=""/> |
|---|
| 133 |
<wsdl:input name="echoRequest"> |
|---|
| 134 |
<wsdlsoap:body |
|---|
| 135 |
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" |
|---|
| 136 |
namespace="urn:www.example.org:abstract" use="encoded"/> |
|---|
| 137 |
</wsdl:input> |
|---|
| 138 |
<wsdl:output name="echoResponse"> |
|---|
| 139 |
<wsdlsoap:body |
|---|
| 140 |
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" |
|---|
| 141 |
namespace="urn:www.example.org:abstract" use="encoded"/> |
|---|
| 142 |
</wsdl:output> |
|---|
| 143 |
</wsdl:operation> |
|---|
| 144 |
|
|---|
| 145 |
<wsdl:operation name="echoLiteral"> |
|---|
| 146 |
<wsdlsoap:operation style="document" soapAction=""/> |
|---|
| 147 |
<wsdl:input name="echoLiteralRequest"> |
|---|
| 148 |
<wsdlsoap:body namespace="urn:www.example.org:abstract" use="literal"/> |
|---|
| 149 |
</wsdl:input> |
|---|
| 150 |
<wsdl:output name="echoLiteralResponse"> |
|---|
| 151 |
<wsdlsoap:body namespace="urn:www.example.org:abstract" use="literal"/> |
|---|
| 152 |
</wsdl:output> |
|---|
| 153 |
</wsdl:operation> |
|---|
| 154 |
|
|---|
| 155 |
<wsdl:operation name="echoDerived"> |
|---|
| 156 |
<wsdlsoap:operation style="rpc" soapAction=""/> |
|---|
| 157 |
<wsdl:input name="echoDerivedRequest"> |
|---|
| 158 |
<wsdlsoap:body |
|---|
| 159 |
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" |
|---|
| 160 |
namespace="urn:www.example.org:abstract" use="encoded"/> |
|---|
| 161 |
</wsdl:input> |
|---|
| 162 |
<wsdl:output name="echoDerivedResponse"> |
|---|
| 163 |
<wsdlsoap:body |
|---|
| 164 |
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" |
|---|
| 165 |
namespace="urn:www.example.org:abstract" use="encoded"/> |
|---|
| 166 |
</wsdl:output> |
|---|
| 167 |
</wsdl:operation> |
|---|
| 168 |
</wsdl:binding> |
|---|
| 169 |
|
|---|
| 170 |
<wsdl:service name="AbstractServiceService"> |
|---|
| 171 |
<wsdl:port name="AbstractService" |
|---|
| 172 |
binding="tns:AbstractServiceSoapBinding"> |
|---|
| 173 |
<wsdlsoap:address location="http://localhost:8080/"/> |
|---|
| 174 |
</wsdl:port> |
|---|
| 175 |
</wsdl:service> |
|---|
| 176 |
</wsdl:definitions> |
|---|