Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ASP.NET Web Service Template

Visual Studio .NET 2003

Use the ASP.NET Web Service project template to author an XML Web service that can be consumed by other Web services or applications on a network. For more information on XML Web services, see XML Web Services in Managed Code. To understand the difference between the Web service and Web application templates, see ASP.NET Web Application Template.


You must have:

  • A computer with Internet Information Services (IIS) installed.
  • If you want to use FrontPage Server Extensions as your access method, the server extensions must also be installed on that computer. For more information, see Web Access Methods.
  • You must have the correct Web permissions settings for your application. For more information, see Web Application Security at Run Time.

Files and References Added by the Template

The template automatically adds the essential project references and files to use as a starting point for your application:

  • AssemblyInfo (.vb file for Visual Basic or .cs file for Visual C#) - Used to describe the assembly and specify versioning information. For more information, see Programming with Assemblies.
  • Global.asax – Contains code for responding to application-level events raised by ASP.NET. For more information, see The Global.asax File.
  • Service file (.vb file for Visual Basic or .cs file for Visual C#) – Contains the class that is used to add functionality to your XML Web service. For more information, see Creating and Accessing XML Web Services Walkthroughs.
  • Web.config – Contains a file with application-specific settings. For more information, see Application Configuration Files.
  • References to these .NET Framework namespaces:
    • System - Contains fundamental classes and base classes that define commonly used values and reference data types, events and event handlers, interfaces, attributes, and processing exceptions.
    • System.Data - Contains classes that constitute the ADO.NET architecture, which is the primary data access method for managed applications.
    • System.Web - Contains classes and interfaces that enable browser/server communication.
    • System.Web.Services - Contains classes that enable you to build and use XML Web services, programmable entities residing on a Web server and exposed via standard Internet protocols.
    • System.Xml - Contains classes that provide standards-based support for processing XML.

See Also

Introduction to Programming XML Web Services in Managed Code | File Types and File Extensions in Visual Basic and Visual C# | Creating ASP.NET Web Service Projects

© 2015 Microsoft