Converter.cs
上传用户:sz0451
上传日期:2022-07-29
资源大小:256k
文件大小:3k
- //------------------------------------------------------------------------------
- // <autogenerated>
- // This code was generated by a tool.
- // Runtime Version: 1.0.3512.0
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </autogenerated>
- //------------------------------------------------------------------------------
- //
- // This source code was auto-generated by wsdl, Version=1.0.3512.0.
- //
- using System.Diagnostics;
- using System.Xml.Serialization;
- using System;
- using System.Web.Services.Protocols;
- using System.ComponentModel;
- using System.Web.Services;
- /// <remarks/>
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.ComponentModel.DesignerCategoryAttribute("code")]
- [System.Web.Services.WebServiceBindingAttribute(Name="TemperatureConverterSoap", Namespace="http://VCSBS/WebServices/")]
- public class TemperatureConverter : System.Web.Services.Protocols.SoapHttpClientProtocol {
-
- /// <remarks/>
- public TemperatureConverter() {
- this.Url = "http://localhost/Converter/Converter.asmx";
- }
-
- /// <remarks/>
- [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)]
- public System.Double ConvertF2C(System.Double dFahrenheit) {
- object[] results = this.Invoke("ConvertF2C", new object[] {
- dFahrenheit});
- return ((System.Double)(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginConvertF2C(System.Double dFahrenheit, System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("ConvertF2C", new object[] {
- dFahrenheit}, callback, asyncState);
- }
-
- /// <remarks/>
- public System.Double EndConvertF2C(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((System.Double)(results[0]));
- }
-
- /// <remarks/>
- [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)]
- public System.Double ConvertC2F(System.Double dCelsius) {
- object[] results = this.Invoke("ConvertC2F", new object[] {
- dCelsius});
- return ((System.Double)(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginConvertC2F(System.Double dCelsius, System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("ConvertC2F", new object[] {
- dCelsius}, callback, asyncState);
- }
-
- /// <remarks/>
- public System.Double EndConvertC2F(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((System.Double)(results[0]));
- }
- }