Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://services.mysite.com/MyService" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://services.mysite.com/MyService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://services.mysite.com/MyService">
- <s:element name="MyMethod">
- <s:complexType />
- </s:element>
- <s:element name="MyMethodResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="MyMethodResult" type="tns:ReturnMessage" />
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:complexType name="ReturnMessage">
- <s:sequence>
- <s:element minOccurs="1" maxOccurs="1" name="Status" type="tns:ReturnStatus" />
- <s:element minOccurs="0" maxOccurs="1" name="GenericReturn" />
- </s:sequence>
- </s:complexType>
- <s:simpleType name="ReturnStatus">
- <s:restriction base="s:string">
- <s:enumeration value="OK" />
- <s:enumeration value="ERROR" />
- </s:restriction>
- </s:simpleType>
- <s:complexType name="Bar">
- <s:sequence>
- <s:element minOccurs="1" maxOccurs="1" name="Number" type="s:int" />
- </s:sequence>
- </s:complexType>
- <s:complexType name="Foo">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="Text" type="s:string" />
- </s:sequence>
- </s:complexType>
- </s:schema>
- </wsdl:types>
- <wsdl:message name="MyMethodSoapIn">
- <wsdl:part name="parameters" element="tns:MyMethod" />
- </wsdl:message>
- <wsdl:message name="MyMethodSoapOut">
- <wsdl:part name="parameters" element="tns:MyMethodResponse" />
- </wsdl:message>
- <wsdl:portType name="MyServiceSoap">
- <wsdl:operation name="MyMethod">
- <wsdl:input message="tns:MyMethodSoapIn" />
- <wsdl:output message="tns:MyMethodSoapOut" />
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:binding name="MyServiceSoap" type="tns:MyServiceSoap">
- <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="MyMethod">
- <soap:operation soapAction="http://services.mysite.com/MyService/MyMethod" style="document" />
- <wsdl:input>
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:binding name="MyServiceSoap12" type="tns:MyServiceSoap">
- <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="MyMethod">
- <soap12:operation soapAction="http://services.mysite.com/MyService/MyMethod" style="document" />
- <wsdl:input>
- <soap12:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:service name="MyService">
- <wsdl:port name="MyServiceSoap" binding="tns:MyServiceSoap">
- <soap:address location="http://localhost/webservices/myservice.asmx" />
- </wsdl:port>
- <wsdl:port name="MyServiceSoap12" binding="tns:MyServiceSoap12">
- <soap12:address location="http://localhost/webservices/myservice.asmx" />
- </wsdl:port>
- </wsdl:service>
- </wsdl:definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement