|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<!-- |
| 4 | + ~ Copyright (c) 2023. |
| 5 | + ~ |
| 6 | + ~ This file is part of Imposter. |
| 7 | + ~ |
| 8 | + ~ "Commons Clause" License Condition v1.0 |
| 9 | + ~ |
| 10 | + ~ The Software is provided to you by the Licensor under the License, as |
| 11 | + ~ defined below, subject to the following condition. |
| 12 | + ~ |
| 13 | + ~ Without limiting other conditions in the License, the grant of rights |
| 14 | + ~ under the License will not include, and the License does not grant to |
| 15 | + ~ you, the right to Sell the Software. |
| 16 | + ~ |
| 17 | + ~ For purposes of the foregoing, "Sell" means practicing any or all of |
| 18 | + ~ the rights granted to you under the License to provide to third parties, |
| 19 | + ~ for a fee or other consideration (including without limitation fees for |
| 20 | + ~ hosting or consulting/support services related to the Software), a |
| 21 | + ~ product or service whose value derives, entirely or substantially, from |
| 22 | + ~ the functionality of the Software. Any license notice or attribution |
| 23 | + ~ required by the License must also include this Commons Clause License |
| 24 | + ~ Condition notice. |
| 25 | + ~ |
| 26 | + ~ Software: Imposter |
| 27 | + ~ |
| 28 | + ~ License: GNU Lesser General Public License version 3 |
| 29 | + ~ |
| 30 | + ~ Licensor: Peter Cornish |
| 31 | + ~ |
| 32 | + ~ Imposter is free software: you can redistribute it and/or modify |
| 33 | + ~ it under the terms of the GNU Lesser General Public License as published by |
| 34 | + ~ the Free Software Foundation, either version 3 of the License, or |
| 35 | + ~ (at your option) any later version. |
| 36 | + ~ |
| 37 | + ~ Imposter is distributed in the hope that it will be useful, |
| 38 | + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 39 | + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 40 | + ~ GNU Lesser General Public License for more details. |
| 41 | + ~ |
| 42 | + ~ You should have received a copy of the GNU Lesser General Public License |
| 43 | + ~ along with Imposter. If not, see <https://www.gnu.org/licenses/>. |
| 44 | + --> |
| 45 | + |
| 46 | +<definitions name="PetService" xmlns="http://schemas.xmlsoap.org/wsdl/" |
| 47 | + xmlns:tns="urn:com:example:petstore" |
| 48 | + xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" |
| 49 | + xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" |
| 50 | + xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 51 | + targetNamespace="urn:com:example:petstore"> |
| 52 | + |
| 53 | + <documentation> |
| 54 | + This is a sample WSDL 1.1 document describing the pet service. |
| 55 | + It has SOAP 1.1 bindings. |
| 56 | + </documentation> |
| 57 | + |
| 58 | + <!-- Abstract type --> |
| 59 | + <types> |
| 60 | + <xs:schema targetNamespace="urn:com:example:petstore" |
| 61 | + xmlns:tns="urn:com:example:petstore"> |
| 62 | + |
| 63 | + <xs:complexType name="petType"> |
| 64 | + <xs:all> |
| 65 | + <xs:element name="id" type="xs:int"/> |
| 66 | + <xs:element name="name" type="xs:string"/> |
| 67 | + </xs:all> |
| 68 | + </xs:complexType> |
| 69 | + |
| 70 | + <xs:complexType name="getPetByIdRequest"> |
| 71 | + <xs:all> |
| 72 | + <xs:element name="id" type="xs:int"/> |
| 73 | + </xs:all> |
| 74 | + </xs:complexType> |
| 75 | + |
| 76 | + <xs:complexType name="getPetByNameRequest"> |
| 77 | + <xs:all> |
| 78 | + <xs:element name="name" type="xs:string"/> |
| 79 | + </xs:all> |
| 80 | + </xs:complexType> |
| 81 | + |
| 82 | + <xs:element name="getPetByIdRequest" type="tns:getPetByIdRequest"/> |
| 83 | + <xs:element name="getPetByIdResponse" type="tns:petType"/> |
| 84 | + |
| 85 | + <xs:element name="getPetByNameRequest" type="tns:getPetByNameRequest"/> |
| 86 | + <xs:element name="getPetByNameResponse" type="tns:petType"/> |
| 87 | + |
| 88 | + <xs:element name="fault" type="xs:string"/> |
| 89 | + </xs:schema> |
| 90 | + </types> |
| 91 | + |
| 92 | + <message name="getPetByIdRequest"> |
| 93 | + <part type="xs:string" name="header"/> |
| 94 | + <part element="tns:getPetByIdRequest" name="body"/> |
| 95 | + </message> |
| 96 | + <message name="getPetByIdResponse"> |
| 97 | + <part element="tns:getPetByIdResponse" name="body"/> |
| 98 | + </message> |
| 99 | + <message name="getPetByNameRequest"> |
| 100 | + <part type="xs:string" name="header"/> |
| 101 | + <part element="tns:getPetByNameRequest" name="body"/> |
| 102 | + </message> |
| 103 | + <message name="getPetByNameResponse"> |
| 104 | + <part element="tns:getPetByNameResponse" name="body"/> |
| 105 | + </message> |
| 106 | + |
| 107 | + <!-- Abstract port types --> |
| 108 | + <portType name="PetPortType"> |
| 109 | + <operation name="getPetById"> |
| 110 | + <input message="tns:getPetByIdRequest" name="getPetByIdRequest"/> |
| 111 | + <output message="tns:getPetByIdResponse" name="getPetByIdResponse"/> |
| 112 | + </operation> |
| 113 | + <operation name="getPetByName"> |
| 114 | + <input message="tns:getPetByNameRequest" name="getPetByNameRequest"/> |
| 115 | + <output message="tns:getPetByNameResponse" name="getPetByNameResponse"/> |
| 116 | + </operation> |
| 117 | + </portType> |
| 118 | + |
| 119 | + <!-- Concrete Binding Over HTTP --> |
| 120 | + <binding name="HttpBinding" type="tns:PetPortType"> |
| 121 | + <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> |
| 122 | + |
| 123 | + <operation name="getPetById"> |
| 124 | + <soap:operation soapAction="getPetById" style="document"/> |
| 125 | + <input name="getPetByIdRequest"> |
| 126 | + <!-- specify the part(s) to use from the message --> |
| 127 | + <soap:header message="getPetByIdRequest" part="header" use="literal"/> |
| 128 | + <soap:body parts="body" use="literal"/> |
| 129 | + </input> |
| 130 | + <output name="getPetByIdResponse"> |
| 131 | + <soap:body use="literal"/> |
| 132 | + </output> |
| 133 | + </operation> |
| 134 | + <operation name="getPetByName"> |
| 135 | + <soap:operation soapAction="getPetByName" style="document"/> |
| 136 | + <input name="getPetByNameRequest"> |
| 137 | + <!-- specify the part(s) to use from the message --> |
| 138 | + <soap:header message="getPetByNameRequest" part="header" use="literal"/> |
| 139 | + <soap:body parts="body" use="literal"/> |
| 140 | + </input> |
| 141 | + <output name="getPetByNameResponse"> |
| 142 | + <soap:body use="literal"/> |
| 143 | + </output> |
| 144 | + </operation> |
| 145 | + </binding> |
| 146 | + |
| 147 | + <!-- Concrete Binding with SOAP--> |
| 148 | + <binding name="SoapBinding" type="tns:PetPortType"> |
| 149 | + <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/soap"/> |
| 150 | + |
| 151 | + <operation name="getPetById"> |
| 152 | + <soap:operation soapAction="getPetById" style="document"/> |
| 153 | + <input name="getPetByIdRequest"> |
| 154 | + <!-- specify the part(s) to use from the message --> |
| 155 | + <soap:header message="getPetByIdRequest" part="header" use="literal"/> |
| 156 | + <soap:body parts="body" use="literal"/> |
| 157 | + </input> |
| 158 | + <output name="getPetByIdResponse"> |
| 159 | + <soap:body use="literal"/> |
| 160 | + </output> |
| 161 | + </operation> |
| 162 | + |
| 163 | + <operation name="getPetByName"> |
| 164 | + <!-- soap:operation style omitted - fall back to soap:binding style --> |
| 165 | + <soap:operation soapAction="getPetByName"/> |
| 166 | + <input name="getPetByNameRequest"> |
| 167 | + <!-- specify the part(s) to use from the message --> |
| 168 | + <soap:header message="getPetByNameRequest" part="header" use="literal"/> |
| 169 | + <soap:body parts="body" use="literal"/> |
| 170 | + </input> |
| 171 | + <output name="getPetByNameResponse"> |
| 172 | + <soap:body use="literal"/> |
| 173 | + </output> |
| 174 | + </operation> |
| 175 | + </binding> |
| 176 | + |
| 177 | + <!-- Web Service offering endpoints for both bindings--> |
| 178 | + <service name="PetService"> |
| 179 | + <port name="HttpEndpoint" binding="tns:HttpBinding"> |
| 180 | + <soap:address location="http://www.example.com/http/"/> |
| 181 | + </port> |
| 182 | + <port name="SoapEndpoint" binding="tns:SoapBinding"> |
| 183 | + <soap:address location="http://www.example.com/soap/"/> |
| 184 | + </port> |
| 185 | + </service> |
| 186 | +</definitions> |
0 commit comments