// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; using System.Web.Services; public class Server : WebService { [WebMethod] public int Add(int a, int b) { return (a + b); } [WebMethod] public string Dup(string s) { return (s + s); } }