Proxy class generation from WSDL in .NET 2.0
The following command creates a .wsdl file for the XML Web service located at the specified URL and creates a client proxy class in the C# language for the XML Web service.
wsdl http://hostServer/WebserviceRoot/WebServiceName.asmx?WSDL
The following command creates a client proxy class in the C# language for an XML Web service located at the specified URL. The tool saves the client proxy class in the file myProxyClass.cs
wsdl /out:myProxyClass.cs http://hostServer/WebserviceRoot/WebServiceName.asmx?WSDL
For more visit to:
http://msdn2.microsoft.com/en-us/library/7h3ystb6(VS.71).aspx
Proxy class generation from WSDL in .NET 3.0
Use this command to generate proxy class from a web service.
WseWsdl3 http://hostServer/WebServiceRoot/WebServiceName.asmx?WSDL /out:MyProxyClass.cs
This will generate the class MyProxyClass.cs which we can include in our solution to create an object of this and then call the appropriate method.
For more visit to :
http://msdn2.microsoft.com/en-us/library/aa529578.aspx