Skip to content

Instantly share code, notes, and snippets.

@aviskase
Last active November 6, 2017 06:14
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 aviskase/0b0025dd6045c1bf0867c6491e887cfb to your computer and use it in GitHub Desktop.
Save aviskase/0b0025dd6045c1bf0867c6491e887cfb to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions
targetNamespace="http://example.com/agreement"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://example.com/agreement"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://example.com/agreement">
<s:element name="CreateAgreementRequest">
<s:complexType>
<s:complexContent>
<s:extension base="tns:BaseType">
<s:sequence>
<s:element name="Agreement">
<s:complexType>
<s:choice>
<s:element name="Offer" type="s:boolean" fixed="true">
</s:element>
<s:element name="Owner">
<s:complexType>
<s:choice>
<s:element name="RegOrg" type="tns:RegOrgType"></s:element>
<s:element name="Ind" type="tns:IndType"></s:element>
</s:choice>
</s:complexType>
</s:element>
</s:choice>
</s:complexType>
</s:element>
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>
</s:element>
<s:element name="CreateAgreementResponse">
<s:simpleType>
<s:restriction base="s:string">
<s:maxLength value="100"/>
</s:restriction>
</s:simpleType>
</s:element>
<s:complexType name="BaseType">
<s:sequence>
<s:element name="base" minOccurs="0"/>
</s:sequence>
</s:complexType>
<s:complexType name="RegOrgType">
<s:sequence minOccurs="0">
<s:element name="orgGUID" type="s:string"/>
</s:sequence>
</s:complexType>
<s:complexType name="IndType">
<s:sequence minOccurs="0">
<s:element name="Surname">
<s:simpleType>
<s:restriction base="s:string">
<s:minLength value="1"/>
<s:maxLength value="60"/>
</s:restriction>
</s:simpleType>
</s:element>
<s:element name="FirstName">
<s:simpleType>
<s:restriction base="s:string">
<s:minLength value="1"/>
<s:maxLength value="60"/>
</s:restriction>
</s:simpleType>
</s:element>
<s:element name="Patronymic" minOccurs="0">
<s:simpleType>
<s:restriction base="s:string">
<s:minLength value="1"/>
<s:maxLength value="60"/>
</s:restriction>
</s:simpleType>
</s:element>
</s:sequence>
</s:complexType>
</s:schema>
</wsdl:types>
<wsdl:message name="CreateAgreementSoapIn">
<wsdl:part name="parameters" element="tns:CreateAgreementRequest"/>
</wsdl:message>
<wsdl:message name="CreateAgreementSoapOut">
<wsdl:part name="parameters" element="tns:CreateAgreementResponse"/>
</wsdl:message>
<wsdl:portType name="AgreementServiceSoap">
<wsdl:operation name="CreateAgreement">
<wsdl:input message="tns:CreateAgreementSoapIn"/>
<wsdl:output message="tns:CreateAgreementSoapOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="AgreementServiceSoap" type="tns:AgreementServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="CreateAgreement">
<soap:operation soapAction="http://example.com/agreement/CreateAgreement" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="AgreementService">
<wsdl:port name="AgreementServiceSoap" binding="tns:AgreementServiceSoap">
<soap:address location="http://example.com/agreement"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment