How to: Create ASP.NET Web Service Projects
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

How to: Create ASP.NET Web Service Projects 

You can start a project that includes the necessary files for creating an XML Web service in either Visual Basic or Visual C# by using the project templates provided by Visual Studio.

To create an XML Web service project

  1. On the File menu, point to New, and then click Web Site.

  2. In the New Web Site dialog box, select the ASP.NET Web Service icon.

  3. Enter the address of the Web server on which you will develop the XML Web service. For example, use "http://MyServer/Application" or simply "http://MyServer" to develop in the root directory. You can also create your site in the file system by choosing a file address, such as "C:\Application".

  4. Click OK to create the project.

Visual Studio automatically creates the necessary files and references to support an XML Web service. When completed, the IDE displays the web service code file in code view. For more information, see ASP.NET XML Web Service Basics.

See Also

© 2015 Microsoft