Creating Your First Web Service

Creating a Web service is as easy as creating any other type of application using Visual Studio .NET. To create your first Web service project, start Visual Studio .NET and select New Project from the Start Page. Select the Visual Basic Projects or C# Projects folder from the New Project dialog, depending on what language you're writing in, and then scroll down and select ASP.NET Web Service. Change the project name from http://localhost/WebService1 to http://localhost/firstService_vb or http://localhost/firstService_cs, depending on what language you're using. Figure 13.1 demonstrates what you should be looking at right now.

Figure 13.1. New Project dialog box.

If you click OK, the new project is created and ...

Get Sams Teach Yourself Visual Studio® .NET 2003 in 21 Days now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.