Skip to content

Instantly share code, notes, and snippets.

@cmbuckley
Last active September 28, 2015 10:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmbuckley/1422704 to your computer and use it in GitHub Desktop.
Save cmbuckley/1422704 to your computer and use it in GitHub Desktop.
<?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>
<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>
<?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