«^»
4.6. The full code of the proxy class

Here is the full code of the proxy class that was generated by Visual Studio.NET:

0106: //------------------------------------------------------------------------------
0107: // <autogenerated>
0108: //     This code was generated by a tool.
0109: //     Runtime Version: 1.1.4322.573
0110: //
0111: //     Changes to this file may cause incorrect behavior and will be lost if 
0112: //     the code is regenerated.
0113: // </autogenerated>
0114: //------------------------------------------------------------------------------
0115: 
0116: // 
0117: // This source code was auto-generated by Microsoft.VSDesigner, Version 1.1.4322.573.
0118: // 
0119: namespace ConsoleConvert.Proxy {
0120:     using System.Diagnostics;
0121:     using System.Xml.Serialization;
0122:     using System;
0123:     using System.Web.Services.Protocols;
0124:     using System.ComponentModel;
0125:     using System.Web.Services;
0126:     
0127:     /// <remarks/>
0128:     [System.Diagnostics.DebuggerStepThroughAttribute()]
0129:     [System.ComponentModel.DesignerCategoryAttribute("code")]
0130:     [System.Web.Services.WebServiceBindingAttribute(Name="Service1Soap",
0131:         Namespace="http://www.a.com/webservices/")]
0132:     public class Service1 : System.Web.Services.Protocols.SoapHttpClientProtocol {
0133:         
0134:         /// <remarks/>
0135:         public Service1() {
0136:             this.Url = 
0137:             "http://www.a.com/wsud/cs/ServerConvert/Service1.asmx";
0138:         }
0139:         
0140:         /// <remarks/>
0141:         [System.Web.Services.Protocols.SoapDocumentMethodAttribute
0142:             ("http://www.a.com/webservices/ToFahrenheit",
0143:             RequestNamespace="http://www.a.com/webservices/",
0144:             ResponseNamespace="http://www.a.com/webservices/",
0145:             Use=System.Web.Services.Description.SoapBindingUse.Literal,
0146:             ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
0147:         public System.Double ToFahrenheit(System.Double pCentigrade) {
0148:             object[] results = this.Invoke("ToFahrenheit", new object[] {
0149:                         pCentigrade});
0150:             return ((System.Double)(results[0]));
0151:         }
0152:         
0153:         /// <remarks/>
0154:         public System.IAsyncResult BeginToFahrenheit(System.Double pCentigrade,
0155:                 System.AsyncCallback callback, object asyncState) {
0156:             return this.BeginInvoke("ToFahrenheit", new object[] {
0157:                         pCentigrade}, callback, asyncState);
0158:         }
0159:         
0160:         /// <remarks/>
0161:         public System.Double EndToFahrenheit(System.IAsyncResult asyncResult) {
0162:             object[] results = this.EndInvoke(asyncResult);
0163:             return ((System.Double)(results[0]));
0164:         }
0165:     }
0166: }