Create WebService publish, test with VS2010

Source: Internet
Author: User

1 Open VS2010, menu file-New project

2 Select "ASP." To name the project you want.

3 Right click Project, add New item

Select the Web service. The name of the service is then named, such as Mywebsevice.

4 in the Asmx file, continue to add your own WebService method, which also changes the namespace to a name that is easy to remember.

5 After the method has been written, right-click the project, Publish.

6 Select "File System" to publish, select the Post folder address, click "Publish";

7 in the published folder, as in the next few files.

8 Open IIS, set up a Web site, right click on the default website, new virtual directory,

Choose the name of the website, such as MyWebService, the address of the folder you just published, and the IP and port of the publication, you need to set the default document and file permissions, version, and so on.

For details, see the 2011-04-15 C # Writing methods and procedures for database Web pages.


9 after the successful release, it can be in IE address,

Input Http://localhost/myWebService/myWebservice1.asmx

To see if your webservice is normal,

At the end of the address input? WSDL to view, related methods, and their parameters, etc.

Input http://localhost/myWebService/myWebservice1.asmx?wsdl


10 Click on the method name in the page, enter the parameters, press the call button, and test whether it is correct.


If you encounter problems, Baidu

Create WebService publish, test with VS2010

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.