// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Web.Services; namespace test { public class Foobar { private int iv; private string sv; public int Iv { get { return iv; } set { iv = value; } } public string Sv { get { return sv; } set { sv = value; } } } public class Test : WebService { [WebMethod] public Foobar TestIt() { Foobar res = new Foobar(); res.Iv = 123; res.Sv = "ABC"; return res; } } }