Converter.wsdl
上传用户:sz0451
上传日期:2022-07-29
资源大小:256k
文件大小:7k
源码类别:

.net编程

开发平台:

Visual C++

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s0="http://VCSBS/WebServices/" targetNamespace="http://VCSBS/WebServices/" xmlns="http://schemas.xmlsoap.org/wsdl/">
  3.   <types>
  4.     <s:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://VCSBS/WebServices/">
  5.       <s:element name="ConvertF2C">
  6.         <s:complexType>
  7.           <s:sequence>
  8.             <s:element minOccurs="1" maxOccurs="1" name="dFahrenheit" type="s:double" />
  9.           </s:sequence>
  10.         </s:complexType>
  11.       </s:element>
  12.       <s:element name="ConvertF2CResponse">
  13.         <s:complexType>
  14.           <s:sequence>
  15.             <s:element minOccurs="1" maxOccurs="1" name="ConvertF2CResult" type="s:double" />
  16.           </s:sequence>
  17.         </s:complexType>
  18.       </s:element>
  19.       <s:element name="ConvertC2F">
  20.         <s:complexType>
  21.           <s:sequence>
  22.             <s:element minOccurs="1" maxOccurs="1" name="dCelsius" type="s:double" />
  23.           </s:sequence>
  24.         </s:complexType>
  25.       </s:element>
  26.       <s:element name="ConvertC2FResponse">
  27.         <s:complexType>
  28.           <s:sequence>
  29.             <s:element minOccurs="1" maxOccurs="1" name="ConvertC2FResult" type="s:double" />
  30.           </s:sequence>
  31.         </s:complexType>
  32.       </s:element>
  33.       <s:element name="double" type="s:double" />
  34.     </s:schema>
  35.   </types>
  36.   <message name="ConvertF2CSoapIn">
  37.     <part name="parameters" element="s0:ConvertF2C" />
  38.   </message>
  39.   <message name="ConvertF2CSoapOut">
  40.     <part name="parameters" element="s0:ConvertF2CResponse" />
  41.   </message>
  42.   <message name="ConvertC2FSoapIn">
  43.     <part name="parameters" element="s0:ConvertC2F" />
  44.   </message>
  45.   <message name="ConvertC2FSoapOut">
  46.     <part name="parameters" element="s0:ConvertC2FResponse" />
  47.   </message>
  48.   <message name="ConvertF2CHttpGetIn">
  49.     <part name="dFahrenheit" type="s:string" />
  50.   </message>
  51.   <message name="ConvertF2CHttpGetOut">
  52.     <part name="Body" element="s0:double" />
  53.   </message>
  54.   <message name="ConvertC2FHttpGetIn">
  55.     <part name="dCelsius" type="s:string" />
  56.   </message>
  57.   <message name="ConvertC2FHttpGetOut">
  58.     <part name="Body" element="s0:double" />
  59.   </message>
  60.   <message name="ConvertF2CHttpPostIn">
  61.     <part name="dFahrenheit" type="s:string" />
  62.   </message>
  63.   <message name="ConvertF2CHttpPostOut">
  64.     <part name="Body" element="s0:double" />
  65.   </message>
  66.   <message name="ConvertC2FHttpPostIn">
  67.     <part name="dCelsius" type="s:string" />
  68.   </message>
  69.   <message name="ConvertC2FHttpPostOut">
  70.     <part name="Body" element="s0:double" />
  71.   </message>
  72.   <portType name="TemperatureConverterSoap">
  73.     <operation name="ConvertF2C">
  74.       <documentation>Converts temperatures from Fahrenheit to Celsius</documentation>
  75.       <input message="s0:ConvertF2CSoapIn" />
  76.       <output message="s0:ConvertF2CSoapOut" />
  77.     </operation>
  78.     <operation name="ConvertC2F">
  79.       <documentation>Converts temperatures from Celsius to Fahrenheit</documentation>
  80.       <input message="s0:ConvertC2FSoapIn" />
  81.       <output message="s0:ConvertC2FSoapOut" />
  82.     </operation>
  83.   </portType>
  84.   <portType name="TemperatureConverterHttpGet">
  85.     <operation name="ConvertF2C">
  86.       <documentation>Converts temperatures from Fahrenheit to Celsius</documentation>
  87.       <input message="s0:ConvertF2CHttpGetIn" />
  88.       <output message="s0:ConvertF2CHttpGetOut" />
  89.     </operation>
  90.     <operation name="ConvertC2F">
  91.       <documentation>Converts temperatures from Celsius to Fahrenheit</documentation>
  92.       <input message="s0:ConvertC2FHttpGetIn" />
  93.       <output message="s0:ConvertC2FHttpGetOut" />
  94.     </operation>
  95.   </portType>
  96.   <portType name="TemperatureConverterHttpPost">
  97.     <operation name="ConvertF2C">
  98.       <documentation>Converts temperatures from Fahrenheit to Celsius</documentation>
  99.       <input message="s0:ConvertF2CHttpPostIn" />
  100.       <output message="s0:ConvertF2CHttpPostOut" />
  101.     </operation>
  102.     <operation name="ConvertC2F">
  103.       <documentation>Converts temperatures from Celsius to Fahrenheit</documentation>
  104.       <input message="s0:ConvertC2FHttpPostIn" />
  105.       <output message="s0:ConvertC2FHttpPostOut" />
  106.     </operation>
  107.   </portType>
  108.   <binding name="TemperatureConverterSoap" type="s0:TemperatureConverterSoap">
  109.     <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
  110.     <operation name="ConvertF2C">
  111.       <soap:operation soapAction="http://VCSBS/WebServices/ConvertF2C" style="document" />
  112.       <input>
  113.         <soap:body use="literal" />
  114.       </input>
  115.       <output>
  116.         <soap:body use="literal" />
  117.       </output>
  118.     </operation>
  119.     <operation name="ConvertC2F">
  120.       <soap:operation soapAction="http://VCSBS/WebServices/ConvertC2F" style="document" />
  121.       <input>
  122.         <soap:body use="literal" />
  123.       </input>
  124.       <output>
  125.         <soap:body use="literal" />
  126.       </output>
  127.     </operation>
  128.   </binding>
  129.   <binding name="TemperatureConverterHttpGet" type="s0:TemperatureConverterHttpGet">
  130.     <http:binding verb="GET" />
  131.     <operation name="ConvertF2C">
  132.       <http:operation location="/ConvertF2C" />
  133.       <input>
  134.         <http:urlEncoded />
  135.       </input>
  136.       <output>
  137.         <mime:mimeXml part="Body" />
  138.       </output>
  139.     </operation>
  140.     <operation name="ConvertC2F">
  141.       <http:operation location="/ConvertC2F" />
  142.       <input>
  143.         <http:urlEncoded />
  144.       </input>
  145.       <output>
  146.         <mime:mimeXml part="Body" />
  147.       </output>
  148.     </operation>
  149.   </binding>
  150.   <binding name="TemperatureConverterHttpPost" type="s0:TemperatureConverterHttpPost">
  151.     <http:binding verb="POST" />
  152.     <operation name="ConvertF2C">
  153.       <http:operation location="/ConvertF2C" />
  154.       <input>
  155.         <mime:content type="application/x-www-form-urlencoded" />
  156.       </input>
  157.       <output>
  158.         <mime:mimeXml part="Body" />
  159.       </output>
  160.     </operation>
  161.     <operation name="ConvertC2F">
  162.       <http:operation location="/ConvertC2F" />
  163.       <input>
  164.         <mime:content type="application/x-www-form-urlencoded" />
  165.       </input>
  166.       <output>
  167.         <mime:mimeXml part="Body" />
  168.       </output>
  169.     </operation>
  170.   </binding>
  171.   <service name="TemperatureConverter">
  172.     <documentation>A Web Service for converting temperaturesbetween Fahrenheit and Celsius</documentation>
  173.     <port name="TemperatureConverterSoap" binding="s0:TemperatureConverterSoap">
  174.       <soap:address location="http://localhost/Converter/Converter.asmx" />
  175.     </port>
  176.     <port name="TemperatureConverterHttpGet" binding="s0:TemperatureConverterHttpGet">
  177.       <http:address location="http://localhost/Converter/Converter.asmx" />
  178.     </port>
  179.     <port name="TemperatureConverterHttpPost" binding="s0:TemperatureConverterHttpPost">
  180.       <http:address location="http://localhost/Converter/Converter.asmx" />
  181.     </port>
  182.   </service>
  183. </definitions>