We add a webservice reference, which is usually done by adding a service reference, and actually adding a service reference behind it generates a proxy class for us.
We manually generate the proxy class method:
1. Generate the WSDL file through the Java Web Service:
1.1. Enter the URL of the WSDL in the IE Address bar for example: http://webservice.webxml.com.cn/WebServices/MobileCodeWS.asmx?wsdl
1.2, through IE "File"--"Save as"--file name input userservice55.wsdl, save type: All Files (* *);
2. Start Menu-->microsoft Visual Studio-->visual Studio tools-->visual Studio Command Prompt (2010);
3. Enter the WSDL WSDL file path (D:\USERSERVICE55.WSDL)/out:userservice55.cs, such as:
4. cs file generated in the Microsoft Visual Studio 10.0\vc\ Directory
Original address: http://www.cnblogs.com/qianxingdewoniu/archive/2012/11/19/2777964.html
VS2010 generates a. cs file from a WSDL file (Java Web Service)