using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; namespace SkeletonWebService { /// /// Summary description for Service1 /// [WebService(Namespace = "http://www.xn--leifbjrkman--wfb.se/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. [System.Web.Script.Services.ScriptService] public class Service1 : System.Web.Services.WebService { [WebMethod] public string HelloWorld(int choice) { switch (choice) { case 0: { return "Hello from web service, choice = 0"; } default: return "Hello from web service, another choice"; } } } }