To manually generate the WebService proxy class

Source: Internet
Author: User
Tags wsdl

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.