How do you generate a proxy class for webservice

1.Use the Wsdl.exe tool to generate the source code file for the proxy class.
     wsdl.exe /l:cs http://www.yoursite.com/Services/WeatherService.asmx?wsdl
     wsdl.exe /l:vb http://www.yoursite.com/Services/WeatherService.asmx?wsdl

2.Compile the source code file for the proxy class.
     vbc /t:library /r:System.dll,System.Web.Services.dll, System.Xml.dll WeatherService.vb
     csc /t:library /r:System.dll,System.Web.Services.dll, System.Xml.dll WeatherService.vb

3.Copy the compiled proxy class into the ASP.NET application's /bin directory.
       The above statement references all the needed assemblies to compile the WeatherService.vb file to a DLL file. After the class is compiled, you need to copy it to your ASP.NET application's /bin directory so that it is visible to your ASP.NET pages.