Last active
September 28, 2015 10:09
-
-
Save cmbuckley/1422704 to your computer and use it in GitHub Desktop.
Example WSDL for http://stackoverflow.com/q/8345995
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" | |
xmlns:tns="urn:order" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" | |
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="order" | |
targetNamespace="urn:order"> | |
<types> | |
<xsd:schema targetNamespace="urn:order"> | |
<xsd:complexType name="OrderItem"> | |
<xsd:all> | |
<xsd:element name="code" type="xsd:string" /> | |
</xsd:all> | |
</xsd:complexType> | |
<xsd:complexType name="OrderItems"> | |
<xsd:sequence> | |
<xsd:element name="item" type="tns:OrderItem" minOccurs="0" maxOccurs="unbounded" /> | |
</xsd:sequence> | |
</xsd:complexType> | |
<xsd:complexType name="Response"> | |
<xsd:all> | |
<xsd:element name="code" type="xsd:string" /> | |
<xsd:element name="description" type="xsd:string" /> | |
<xsd:element name="success" type="xsd:boolean" /> | |
</xsd:all> | |
</xsd:complexType> | |
</xsd:schema> | |
</types> | |
<portType name="OrderPort"> | |
<operation name="createOrder"> | |
<input message="tns:createOrderIn" /> | |
<output message="tns:createOrderOut" /> | |
</operation> | |
</portType> | |
<binding name="OrderBinding" type="tns:OrderPort"> | |
<soap:binding style="rpc" | |
transport="http://schemas.xmlsoap.org/soap/http" /> | |
<operation name="createOrder"> | |
<soap:operation | |
soapAction="http://example.net/order#createOrder" /> | |
<input> | |
<soap:body use="encoded" | |
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | |
namespace="urn:order" /> | |
</input> | |
<output> | |
<soap:body use="encoded" | |
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | |
namespace="urn:order" /> | |
</output> | |
</operation> | |
</binding> | |
<service name="OrderService"> | |
<port name="OrderPort" binding="tns:OrderBinding"> | |
<soap:address location="http://example.net/request" /> | |
</port> | |
</service> | |
<message name="createOrderIn"> | |
<part name="items" type="tns:OrderItems" /> | |
</message> | |
<message name="createOrderOut"> | |
<part name="return" type="tns:Response" /> | |
</message> | |
</definitions> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsd:complexType name="OrderItems"> | |
<xsd:complexContent> | |
<xsd:restriction base="soap-enc:Array"> | |
<xsd:attribute ref="soap-enc:arrayType" wsdl:arrayType="tns:OrderItem[]" /> | |
</xsd:restriction> | |
</xsd:complexContent> | |
</xsd:complexType> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" | |
xmlns:tns="urn:order" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" | |
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="order" | |
targetNamespace="urn:order"> | |
<types> | |
<xsd:schema targetNamespace="urn:order"> | |
<xsd:complexType name="OrderItem"> | |
<xsd:all> | |
<xsd:element name="code" type="xsd:string" /> | |
</xsd:all> | |
</xsd:complexType> | |
<xsd:complexType name="OrderItems"> | |
<xsd:complexContent> | |
<xsd:restriction base="soap-enc:Array"> | |
<xsd:attribute ref="soap-enc:arrayType" wsdl:arrayType="tns:OrderItem[]" /> | |
</xsd:restriction> | |
</xsd:complexContent> | |
</xsd:complexType> | |
<xsd:complexType name="Response"> | |
<xsd:all> | |
<xsd:element name="code" type="xsd:string" /> | |
<xsd:element name="description" type="xsd:string" /> | |
<xsd:element name="success" type="xsd:boolean" /> | |
</xsd:all> | |
</xsd:complexType> | |
</xsd:schema> | |
</types> | |
<portType name="OrderPort"> | |
<operation name="createOrder"> | |
<input message="tns:createOrderIn" /> | |
<output message="tns:createOrderOut" /> | |
</operation> | |
</portType> | |
<binding name="OrderBinding" type="tns:OrderPort"> | |
<soap:binding style="rpc" | |
transport="http://schemas.xmlsoap.org/soap/http" /> | |
<operation name="createOrder"> | |
<soap:operation | |
soapAction="http://example.net/order#createOrder" /> | |
<input> | |
<soap:body use="encoded" | |
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | |
namespace="urn:order" /> | |
</input> | |
<output> | |
<soap:body use="encoded" | |
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | |
namespace="urn:order" /> | |
</output> | |
</operation> | |
</binding> | |
<service name="OrderService"> | |
<port name="OrderPort" binding="tns:OrderBinding"> | |
<soap:address location="http://example.net/request" /> | |
</port> | |
</service> | |
<message name="createOrderIn"> | |
<part name="items" type="tns:OrderItems" /> | |
</message> | |
<message name="createOrderOut"> | |
<part name="return" type="tns:Response" /> | |
</message> | |
</definitions> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment