Service1.wsdl
上传用户:lxycoco
上传日期:2022-07-21
资源大小:38457k
文件大小:4k
源码类别:

C#编程

开发平台:

Others

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <definitions xmlns:s1="http://microsoft.com/wsdl/types/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://tempuri.org/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://tempuri.org/" xmlns="http://schemas.xmlsoap.org/wsdl/">
  3.   <types>
  4.     <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
  5.       <s:import namespace="http://microsoft.com/wsdl/types/" />
  6.       <s:element name="Login">
  7.         <s:complexType>
  8.           <s:sequence>
  9.             <s:element minOccurs="0" maxOccurs="1" name="userName" type="s:string" />
  10.             <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
  11.           </s:sequence>
  12.         </s:complexType>
  13.       </s:element>
  14.       <s:element name="LoginResponse">
  15.         <s:complexType>
  16.           <s:sequence>
  17.             <s:element minOccurs="1" maxOccurs="1" name="LoginResult" type="s1:guid" />
  18.           </s:sequence>
  19.         </s:complexType>
  20.       </s:element>
  21.       <s:element name="DoSomething">
  22.         <s:complexType />
  23.       </s:element>
  24.       <s:element name="DoSomethingResponse">
  25.         <s:complexType>
  26.           <s:sequence>
  27.             <s:element minOccurs="0" maxOccurs="1" name="DoSomethingResult" type="s:string" />
  28.           </s:sequence>
  29.         </s:complexType>
  30.       </s:element>
  31.       <s:element name="AuthenticationToken" type="s0:AuthenticationToken" />
  32.       <s:complexType name="AuthenticationToken">
  33.         <s:sequence>
  34.           <s:element minOccurs="1" maxOccurs="1" name="InnerToken" type="s1:guid" />
  35.         </s:sequence>
  36.       </s:complexType>
  37.     </s:schema>
  38.     <s:schema elementFormDefault="qualified" targetNamespace="http://microsoft.com/wsdl/types/">
  39.       <s:simpleType name="guid">
  40.         <s:restriction base="s:string">
  41.           <s:pattern value="[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" />
  42.         </s:restriction>
  43.       </s:simpleType>
  44.     </s:schema>
  45.   </types>
  46.   <message name="LoginSoapIn">
  47.     <part name="parameters" element="s0:Login" />
  48.   </message>
  49.   <message name="LoginSoapOut">
  50.     <part name="parameters" element="s0:LoginResponse" />
  51.   </message>
  52.   <message name="DoSomethingSoapIn">
  53.     <part name="parameters" element="s0:DoSomething" />
  54.   </message>
  55.   <message name="DoSomethingSoapOut">
  56.     <part name="parameters" element="s0:DoSomethingResponse" />
  57.   </message>
  58.   <message name="DoSomethingAuthenticationToken">
  59.     <part name="AuthenticationToken" element="s0:AuthenticationToken" />
  60.   </message>
  61.   <portType name="Service1Soap">
  62.     <operation name="Login">
  63.       <input message="s0:LoginSoapIn" />
  64.       <output message="s0:LoginSoapOut" />
  65.     </operation>
  66.     <operation name="DoSomething">
  67.       <input message="s0:DoSomethingSoapIn" />
  68.       <output message="s0:DoSomethingSoapOut" />
  69.     </operation>
  70.   </portType>
  71.   <binding name="Service1Soap" type="s0:Service1Soap">
  72.     <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
  73.     <operation name="Login">
  74.       <soap:operation soapAction="http://tempuri.org/Login" style="document" />
  75.       <input>
  76.         <soap:body use="literal" />
  77.       </input>
  78.       <output>
  79.         <soap:body use="literal" />
  80.       </output>
  81.     </operation>
  82.     <operation name="DoSomething">
  83.       <soap:operation soapAction="http://tempuri.org/DoSomething" style="document" />
  84.       <input>
  85.         <soap:body use="literal" />
  86.         <soap:header message="s0:DoSomethingAuthenticationToken" part="AuthenticationToken" use="literal" />
  87.       </input>
  88.       <output>
  89.         <soap:body use="literal" />
  90.       </output>
  91.     </operation>
  92.   </binding>
  93.   <service name="Service1">
  94.     <port name="Service1Soap" binding="s0:Service1Soap">
  95.       <soap:address location="http://localhost/PCSWebSrv3/Service1.asmx" />
  96.     </port>
  97.   </service>
  98. </definitions>