Simplest web method : WebService « Network « C# / CSharp Tutorial






<%@ WebService Language="C#" Class="HelloWebService" %>
using System;
using System.Web.Services;

public class HelloWebService
{
  [WebMethod]
  public string HelloWorld()
  {
    return "Hello World";
  }
}








33.21.WebService
33.21.1.Simple WebService
33.21.2.Simplest web method
33.21.3.Web service client