Skip to content

Instantly share code, notes, and snippets.

@cmbuckley
Last active September 28, 2015 10:09

Revisions

  1. cmbuckley revised this gist Jun 8, 2015. 1 changed file with 7 additions and 5 deletions.
    12 changes: 7 additions & 5 deletions type-fixed.xml
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    <xsd:complexContent>
    <xsd:restriction base="soap-enc:Array">
    <xsd:attribute ref="soap-enc:arrayType" wsdl:arrayType="tns:OrderItem[]" />
    </xsd:restriction>
    </xsd:complexContent>
    <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>
  2. cmbuckley revised this gist Jun 8, 2015. 2 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
  3. cmbuckley revised this gist Jun 8, 2015. 2 changed files with 70 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions fixed-type.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    <xsd:complexContent>
    <xsd:restriction base="soap-enc:Array">
    <xsd:attribute ref="soap-enc:arrayType" wsdl:arrayType="tns:OrderItem[]" />
    </xsd:restriction>
    </xsd:complexContent>
    65 changes: 65 additions & 0 deletions fixed-wsdl.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,65 @@
    <?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>
  4. cmbuckley renamed this gist Feb 12, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. cmbuckley created this gist Dec 2, 2011.
    63 changes: 63 additions & 0 deletions 8345995.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,63 @@
    <?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>