Creating XML Web Services in Managed Code
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 computer 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.
In This Section
- 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.