You create XML Web services in managed code using the ASP.NET page framework. You start by creating an .asmx file. This file contains the WebService directive, which identifies the public class that implements the XML Web service logic. The XML Web service class contains one or more public methods for exposure in an XML Web service. These XML Web service methods are prefaced with the WebMethod attribute. ASP.NET handles the infrastructure to expose those methods as an XML Web service. For more information, see Code Model for XML Web Services in Managed Code.
To create XML Web services in managed code using Visual Studio, you need access to a Web server configured for developing ASP.NET applications. You develop XML Web services in managed code on a development server. By default, the development server is the machine on which you installed Visual Studio. Typically, you develop and build the project on a development server, and then deploy it to another server (the deployment server) that will host the XML Web service. However, if development occurs directly on the server that will host the XML Web service, the development server and deployment server are the same. For more information, see Creating Web Projects and Visual Studio .NET Software Requirements.
In This Section
- ASP.NET Web Service Projects in Visual Studio
- Describes the structure of an ASP.NET Web Service project.
- Code Model for XML Web Services in Managed Code
- Describes the code model used by Web Services in managed code.
- Exploring XML Web Service Content
- Describes the content of a Web Service that you can view from a Web browser.
- Creating ASP.NET Web Service Projects
- Provides instructions on how to create an XML Web service using the ASP.NET Web Service project template.
- Adding an XML Web Service to an Existing Web Project in Managed Code
- Provides instructions on how to add a Web Service to an existing Web project.
- Using the WebService Attribute
- Provides instructions on how to apply the System.Web.Services.WebServiceAttribute attribute.
- Inheriting from the WebService Class
- Provides instructions on how to inherit from the System.Web.Services.WebService class.
- Creating an XML Web Service Method
- Provides instructions on how to create a method exposed by a Web Service.
- Using the WebMethod Attribute
- Provides instructions on how to apply the System.Web.Services.WebMethodAttribute attribute.
- Debugging XML Web Services in Managed Code
- Provides instructions on how to debug a Web Service using multiple methods.
- Deploying XML Web Services in Managed Code
- Provides instructions on how to deploy a Web Service using multiple methods.
- Fine-Tuning Discovery Mechanisms
- Describes the reasons for modifying Web Service discovery documents created in Visual Studio.
Related Sections
- Programming the Web with XML Web Services
- Provides links to various XML Web services topics.
- Introduction to Programming XML Web Services in Managed Code
- Describes the Web Services programming paradigm.
- Accessing XML Web Services in Managed Code
- Describes the process and provides instructions on how to access Web Services in managed code.
- XML Web Services
- Describes the use of XML Web services in Duwamish 7.0.
- Customizing SOAP Messages
- Describes how to customize SOAP messages, including how to work with various XML encoding methods.
- Using SOAP Headers
- Describes how to utilize SOAP headers in XML Web services created using ASP.NET and how to include additional information with SOAP messages.
- Building XML Web Services Using ASP.NET
- Provides information from the .NET Framework SDK on building XML Web Services using ASP.NET.
- Handling and Throwing Exceptions in XML Web Services
- Describes how to handle and throw exceptions in XML Web services created using ASP.NET.
- XML Web Services Created with ATL Server
- Describes how to create, distribute, and consume XML Web services using ATL Server and C++.