Skip to content

Instantly share code, notes, and snippets.

@plq
Created March 6, 2017 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plq/2ed79632536a0b2d700ecd82c9ff781c to your computer and use it in GitHub Desktop.
Save plq/2ed79632536a0b2d700ecd82c9ff781c to your computer and use it in GitHub Desktop.
<?xml version='1.0' encoding='utf-8'?>
<wsdl:definitions xmlns:plink="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:s0="www.example.com/schema/b" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap11env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:soap12env="http://www.w3.org/2003/05/soap-envelope" xmlns:tns="www.example.com/schema/a" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap11="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdlsoap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="www.example.com/schema/a" name="Application">
<wsdl:types>
<xs:schema targetNamespace="www.example.com/schema/b" elementFormDefault="qualified">
<xs:import namespace="www.example.com/schema/a" />
<xs:complexType name="Baz">
<xs:sequence>
<xs:element name="Thing" type="xs:string" minOccurs="0" nillable="true" />
</xs:sequence>
<xs:attribute name="AttrC" type="xs:string" />
</xs:complexType>
<xs:element name="Baz" type="s0:Baz" />
</xs:schema>
<xs:schema targetNamespace="www.example.com/schema/a" elementFormDefault="qualified">
<xs:import namespace="www.example.com/schema/b" />
<xs:complexType name="stringArray">
<xs:sequence>
<xs:element name="string" type="xs:string" minOccurs="0" maxOccurs="unbounded" nillable="true" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="FooCustomRequest">
<xs:sequence>
<xs:element name="Bar" type="s0:Baz" minOccurs="0" nillable="true" />
<xs:element name="Baz" type="xs:string" minOccurs="0" nillable="true" />
</xs:sequence>
<xs:attribute name="AttrA" type="xs:string" />
<xs:attribute name="AttrB" type="xs:string" />
</xs:complexType>
<xs:element name="FooResponse" type="tns:stringArray" />
<xs:element name="Foo" type="tns:FooCustomRequest" />
</xs:schema>
</wsdl:types>
<wsdl:message name="Foo">
<wsdl:part name="Foo" element="tns:Foo" />
</wsdl:message>
<wsdl:message name="FooResponse">
<wsdl:part name="FooResponse" element="tns:FooResponse" />
</wsdl:message>
<wsdl:service name="FooService">
<wsdl:port name="Application" binding="tns:Application">
<wsdlsoap11:address location="http://localhost:8000/" />
</wsdl:port>
</wsdl:service>
<wsdl:portType name="Application">
<wsdl:operation name="Foo" parameterOrder="Foo">
<wsdl:input name="Foo" message="tns:Foo" />
<wsdl:output name="FooResponse" message="tns:FooResponse" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="Application" type="tns:Application">
<wsdlsoap11:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="Foo">
<wsdlsoap11:operation soapAction="Foo" style="document" />
<wsdl:input name="Foo">
<wsdlsoap11:body use="literal" />
</wsdl:input>
<wsdl:output name="FooResponse">
<wsdlsoap11:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
</wsdl:definitions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment