START PREV NEXT

Examples of WEB service using Visual Studio .NET

Let’s go through some example code of WEB services in C# using Visual Studio.

 

Hardware/Software requirements:

Disk Space: around 500M of free disk space will be needed for installing Visual Studio .NET 2003 and for writing some sample code.

OS: Windows 2000(with latest Service Pack) or Windows XP Professional (XP HOME edition supports limited functionality for Visual Studio .NET).

IIS server:  Internet Information server is part of the operating system installation. But this may have to be reconfigured from Windows configuration options.

Web Services are developed and deployed on a Web Server and their URL is advertised so that "Internet" clients can discover and make use of their services. Even though that Web Server can be Microsoft IIS, or Apache, or any other such server, at this point in time, the .NET framework only supports deployment on Microsoft IIS.     

 

Example of building WEB component using C#:

Hello World Web Service: We are going to write a simple Web Service in Visual Studio .NET that will give exposure to the tools.

HelloWorld

Web Service:  We are going to write a Web Service that validates the credit card numbers sent from any client program of the service over the Web using C# .NET.

Web Service Visa validator

Windows Client: This page talks about how to build a SOAP consumer client for the above Visa Web Service.

Windows Client Consumer

Web Forms Client: This page describes how to build .NET Web forms consumer and how to add the reference of the Service directly into the project.

Windows Forms Consumer

Download Example Programs:

                   Examples.zip