Export (0) Print
Expand All

Creating Web Services in Managed Code

 Windows Communication Foundation Services and ADO.NET Data Services

You create 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 Web service logic. The Web service class contains one or more public methods for exposure in a Web service. These Web service methods are prefaced with the WebMethod attribute. ASP.NET handles the infrastructure to expose those methods as a Web service. For more information, see Code Model for Web Services in Managed Code.

To create Web services in managed code using Visual Studio, you need access to a Web server configured for developing ASP.NET applications. You develop 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 Web service. However, if development occurs directly on the server that will host the Web service, the development server and deployment server are the same.

Code Model for Web Services in Managed Code

Describes the code model used by Web Services in managed code.

How to: Explore Web Service Content

Describes the content of a Web Service that you can view from a Web browser.

How to: Create ASP.NET Web Service Projects

Provides instructions on how to create a Web service using the ASP.NET Web Service project template.

How to: Add a Web Service to an Existing Web Project in Managed Code

Provides instructions on how to add a Web Service to an existing Web project.

How to: Use the WebService Attribute

Provides instructions on how to apply the System.Web.Services.WebServiceAttribute attribute.

How to: Inherit from the WebService Class

Provides instructions on how to inherit from the System.Web.Services.WebService class.

How to: Create a Web Service Method

Provides instructions on how to create a method exposed by a Web Service.

How to: Use the WebMethod Attribute

Provides instructions on how to apply the System.Web.Services.WebMethodAttribute attribute.

How to: Debug Web Services in Managed Code

Provides instructions on how to debug a Web Service using multiple methods.

How to: Deploy Web Services in Managed Code

Provides instructions on how to deploy a Web Service using multiple methods.

Programming the Web with Web Services

Provides links to various Web services topics.

Introduction to Programming Web Services in Managed Code

Describes the Web Services programming paradigm.

Accessing Web Services in Managed Code

Describes the process and provides instructions on how to access Web Services in managed code.

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 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 Windows Software Development Kit (SDK) on building Web Services using ASP.NET.

Handling and Throwing Exceptions in XML Web Services

Describes how to handle and throw exceptions in Web services created using ASP.NET.

Community Additions

ADD
Show:
© 2014 Microsoft