Advertisement
Guest User

MyService WSDL

a guest
Jul 2nd, 2015
558
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.68 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <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/">
  3.   <wsdl:types>
  4.     <s:schema elementFormDefault="qualified" targetNamespace="http://services.mysite.com/MyService">
  5.       <s:element name="MyMethod">
  6.         <s:complexType />
  7.       </s:element>
  8.       <s:element name="MyMethodResponse">
  9.         <s:complexType>
  10.           <s:sequence>
  11.             <s:element minOccurs="0" maxOccurs="1" name="MyMethodResult" type="tns:ReturnMessage" />
  12.           </s:sequence>
  13.         </s:complexType>
  14.       </s:element>
  15.       <s:complexType name="ReturnMessage">
  16.         <s:sequence>
  17.           <s:element minOccurs="1" maxOccurs="1" name="Status" type="tns:ReturnStatus" />
  18.           <s:element minOccurs="0" maxOccurs="1" name="GenericReturn" />
  19.         </s:sequence>
  20.       </s:complexType>
  21.       <s:simpleType name="ReturnStatus">
  22.         <s:restriction base="s:string">
  23.           <s:enumeration value="OK" />
  24.           <s:enumeration value="ERROR" />
  25.         </s:restriction>
  26.       </s:simpleType>
  27.       <s:complexType name="Bar">
  28.         <s:sequence>
  29.           <s:element minOccurs="1" maxOccurs="1" name="Number" type="s:int" />
  30.         </s:sequence>
  31.       </s:complexType>
  32.       <s:complexType name="Foo">
  33.         <s:sequence>
  34.           <s:element minOccurs="0" maxOccurs="1" name="Text" type="s:string" />
  35.         </s:sequence>
  36.       </s:complexType>
  37.     </s:schema>
  38.   </wsdl:types>
  39.   <wsdl:message name="MyMethodSoapIn">
  40.     <wsdl:part name="parameters" element="tns:MyMethod" />
  41.   </wsdl:message>
  42.   <wsdl:message name="MyMethodSoapOut">
  43.     <wsdl:part name="parameters" element="tns:MyMethodResponse" />
  44.   </wsdl:message>
  45.   <wsdl:portType name="MyServiceSoap">
  46.     <wsdl:operation name="MyMethod">
  47.       <wsdl:input message="tns:MyMethodSoapIn" />
  48.       <wsdl:output message="tns:MyMethodSoapOut" />
  49.     </wsdl:operation>
  50.   </wsdl:portType>
  51.   <wsdl:binding name="MyServiceSoap" type="tns:MyServiceSoap">
  52.     <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
  53.     <wsdl:operation name="MyMethod">
  54.       <soap:operation soapAction="http://services.mysite.com/MyService/MyMethod" style="document" />
  55.       <wsdl:input>
  56.         <soap:body use="literal" />
  57.       </wsdl:input>
  58.       <wsdl:output>
  59.         <soap:body use="literal" />
  60.       </wsdl:output>
  61.     </wsdl:operation>
  62.   </wsdl:binding>
  63.   <wsdl:binding name="MyServiceSoap12" type="tns:MyServiceSoap">
  64.     <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
  65.     <wsdl:operation name="MyMethod">
  66.       <soap12:operation soapAction="http://services.mysite.com/MyService/MyMethod" style="document" />
  67.       <wsdl:input>
  68.         <soap12:body use="literal" />
  69.       </wsdl:input>
  70.       <wsdl:output>
  71.         <soap12:body use="literal" />
  72.       </wsdl:output>
  73.     </wsdl:operation>
  74.   </wsdl:binding>
  75.   <wsdl:service name="MyService">
  76.     <wsdl:port name="MyServiceSoap" binding="tns:MyServiceSoap">
  77.       <soap:address location="http://localhost/webservices/myservice.asmx" />
  78.     </wsdl:port>
  79.     <wsdl:port name="MyServiceSoap12" binding="tns:MyServiceSoap12">
  80.       <soap12:address location="http://localhost/webservices/myservice.asmx" />
  81.     </wsdl:port>
  82.   </wsdl:service>
  83. </wsdl:definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement