Way One:
Manually generating the WebService proxy class requires a copy of the generated statement, such as Wsdl.exe/l:cs/out:d:/proxyservices.cs Http://localhost/WebService.asmx, to be copied to the visual Studio 2008 Command Prompt window to execute, this is a way.
Way two:
First open Visual Studio 2008, choose Menu Tools-External tools to open the External Tools dialog box, click the Add button to add a new tool, and then enter the WSDL generation proxy class in the title row, and enter C:/Program files/in the command line. Microsoft sdks/windows/v6.0a/bin/wsdl.exe/l:cs/out: "
(The path to the Wsdl.exe file), enter "/l:cs/out:" In the "Parameters" row, click the Triangle button to the right of the "Initial Catalog" row, select "Item Directory", tick "use Output Window" and "Prompt for parameters", and then confirm the save.
Then open the menu "tools" to see a "WSDL Generation proxy class" menu, then select a folder to hold the generated proxy class (must be located and included in the current solution), and then click on the "WSDL Generation Agent Class" menu, pop up the following dialog box, and then you only need to "/L:CS/ Out: "After empty one box (must be empty one) and then paste the HTTP address of the WebService file, such as Http://localhost/WebService.asmx, click" OK "to see what happened? Yes, the Output window will show the generated class and its location, see if it is the folder you selected, find the path to see if there is a class, and you will find that this class is exactly the same as the class generated using the command line above.
Reprinted from: http://blog.csdn.net/llorjj999/article/details/5181564
To manually generate the WebService proxy class