Building Web Services

This next section will show you how to create your own web services and give you information on dealing with irregular and complex data types, state maintenance, and more. More advanced web service topics will be covered in later chapters.

Hello World

The first sample of a web service that you'll see is the default web service that you create within Visual Studio .NET 2003. To follow along, create a new Web Service project in Visual Studio .NET 2003 and call it WSChapter32. Delete the Service1.asmx file and add a new web service to the project called HelloService.asmx. The code for HelloService is contained in Listing 32.1.

Listing 32.1. The Code-Behind for the Simple Hello World Web Service
 using System; using System.Collections; ...

Get Microsoft® Visual C#® .NET 2003 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.