using System; using System.Web; using System.Collections; using System.Web.Services; using System.Web.Services.Protocols; /// /// Summary description for Teenused /// [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class Teenused : System.Web.Services.WebService { public Teenused () { //Uncomment the following line if using designed components //InitializeComponent(); } [WebMethod] public string HelloWorld() { return "Ahoi"; } [WebMethod] public string Tervita(string eesnimi) { return "Tere tulemast, " + eesnimi; } [WebMethod] public int[] TellimusteLoetelu() { return new TellimusteHaldus().TaitmataTellimusteKoodid(); } [WebMethod] public string TellimuseAndmed(int TellimuseID) { return new TellimusteHaldus().TellimuseAndmed(TellimuseID); } }