Implementing Web Services

Web Services are Web application DLLs that contain classes generalized from the System.Web.Services.WebService class. Web methods are methods in a WebService that are tagged with the WebMethodAttribute. The easiest way to create a WebService is to select an ASP.NET Web Service template from the New Project dialog box. The ASP.NET Web Service template will prepare the project for you, including creating the global.asax file, adding an .asmx file that contains the ASP code that will be your Web Service, creating the web.config file and the .vsdisco file.

We will cover the role of each of these files and wrap up this section with the .asmx file and implementing the Web Service.

global.asax File

The global.asax file is the ...

Get Visual Basic® .NET Unleashed 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.