VS2010 generates a. cs file from a WSDL file (Java Web Service)

Source: Internet
Author: User

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)

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.