Creating An ASP .NET Web Services Project

A Web Service in Visual Studio .NET is constructed in a similar manner to an ASP .NET Web Form. There is a small HTML file and a VB code module behind it. The HTML file is not used to display anything in a browser, it is used to invoke the Web Service. Let’s create an ASP .NET Web Service project so we can see what we are talking about.

Set up your web server the same way you did for the Web Forms projects. To create a Web Services project, click New Project. Name the project ADOBook10-01. When the dialog opens, select ASP .NET Web Service from the list of templates as shown in Figure 10.1.

Figure 10.1. Creating a Web Services project.

When you click OK, the IDE creates the project. As with an ASP ...

Get ADO.NET Programming in Visual Basic™ .NET 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.