Code Model for Web Services

A Web service created using Visual Studio .NET has two parts:

  1. The first part is a file with extension .asmx, which serves as the addressable entry point for the Web service.

  2. The second part is the code behind file with extension .asmx.cs (.asmx.vb for VB.NET), which provides the implementations for the methods that the Web service provides.

The WebService directive present in the .asmx file specifies the public class that implements the Web service logic. In ASP.NET, the .asmx file references code in pre-compiled assemblies, a code-behind file, or the code contained in the .asmx file itself. The Web service class contains one or more public methods for exposure in a Web service. These Web service methods are prefaced ...

Get .NET Security and Cryptography now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.