<%@ WebService Language="C#" Class="Hello" %> using System; using System.Web.Services; class Hello:System.Web.Services.WebService { [WebMethod] public string HelloMessage() { return ("Hello .NET Web Service"); } } 1. Save the above text in a file named hello.asmx file in the inetpub/wwwroot directory 2. Access the web service by specifying the .asmx file in the URL (i.e. http://localhost/simplehello.asmx) 3. Invoking the web service this way automatically generates a web page that specifies the message format, and gives you a convenient invocation button for simple parameters. (i.e. it only supports a GET) 4. Notice that the response is wrapped in XML