Service.cs 490 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Web;
  3. using System.Web.Services;
  4. using System.Web.Services.Protocols;
  5. [WebService(Namespace = "http://tempuri.org/")]
  6. [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
  7. public class Service : System.Web.Services.WebService
  8. {
  9. public Service () {
  10. //Uncomment the following line if using designed components
  11. //InitializeComponent();
  12. }
  13. [WebMethod]
  14. public string HelloWorld() {
  15. return "Hello World";
  16. }
  17. }