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

.net编程

开发平台:

Visual C++

  1. //------------------------------------------------------------------------------
  2. // <autogenerated>
  3. //     This code was generated by a tool.
  4. //     Runtime Version: 1.0.3512.0
  5. //
  6. //     Changes to this file may cause incorrect behavior and will be lost if 
  7. //     the code is regenerated.
  8. // </autogenerated>
  9. //------------------------------------------------------------------------------
  10. // 
  11. // This source code was auto-generated by wsdl, Version=1.0.3512.0.
  12. // 
  13. using System.Diagnostics;
  14. using System.Xml.Serialization;
  15. using System;
  16. using System.Web.Services.Protocols;
  17. using System.ComponentModel;
  18. using System.Web.Services;
  19. /// <remarks/>
  20. [System.Diagnostics.DebuggerStepThroughAttribute()]
  21. [System.ComponentModel.DesignerCategoryAttribute("code")]
  22. [System.Web.Services.WebServiceBindingAttribute(Name="TemperatureConverterSoap", Namespace="http://VCSBS/WebServices/")]
  23. public class TemperatureConverter : System.Web.Services.Protocols.SoapHttpClientProtocol {
  24.     
  25.     /// <remarks/>
  26.     public TemperatureConverter() {
  27.         this.Url = "http://localhost/Converter/Converter.asmx";
  28.     }
  29.     
  30.     /// <remarks/>
  31.     [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://VCSBS/WebServices/ConvertF2C", RequestNamespace="http://VCSBS/WebServices/", ResponseNamespace="http://VCSBS/WebServices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  32.     public System.Double ConvertF2C(System.Double dFahrenheit) {
  33.         object[] results = this.Invoke("ConvertF2C", new object[] {
  34.                     dFahrenheit});
  35.         return ((System.Double)(results[0]));
  36.     }
  37.     
  38.     /// <remarks/>
  39.     public System.IAsyncResult BeginConvertF2C(System.Double dFahrenheit, System.AsyncCallback callback, object asyncState) {
  40.         return this.BeginInvoke("ConvertF2C", new object[] {
  41.                     dFahrenheit}, callback, asyncState);
  42.     }
  43.     
  44.     /// <remarks/>
  45.     public System.Double EndConvertF2C(System.IAsyncResult asyncResult) {
  46.         object[] results = this.EndInvoke(asyncResult);
  47.         return ((System.Double)(results[0]));
  48.     }
  49.     
  50.     /// <remarks/>
  51.     [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://VCSBS/WebServices/ConvertC2F", RequestNamespace="http://VCSBS/WebServices/", ResponseNamespace="http://VCSBS/WebServices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  52.     public System.Double ConvertC2F(System.Double dCelsius) {
  53.         object[] results = this.Invoke("ConvertC2F", new object[] {
  54.                     dCelsius});
  55.         return ((System.Double)(results[0]));
  56.     }
  57.     
  58.     /// <remarks/>
  59.     public System.IAsyncResult BeginConvertC2F(System.Double dCelsius, System.AsyncCallback callback, object asyncState) {
  60.         return this.BeginInvoke("ConvertC2F", new object[] {
  61.                     dCelsius}, callback, asyncState);
  62.     }
  63.     
  64.     /// <remarks/>
  65.     public System.Double EndConvertC2F(System.IAsyncResult asyncResult) {
  66.         object[] results = this.EndInvoke(asyncResult);
  67.         return ((System.Double)(results[0]));
  68.     }
  69. }