using System;using System.Web;using System.Web.Services;using System.Web.Services.Protocols;[WebService(Namespace = "http://tempuri.org/")][WebServiceBinding(ConformsTo = WsiProfiles.None)]//Set ConformsTo attributepublic class Service : System.Web.Services.WebService{ public Service (){} [WebMethod(MessageName="1stMethod")] //Set MessageName attribute public string HelloWorld() { return "Hello World"; } [WebMethod(MessageName="2ndMethod")] //Set MessageName attribute public string HelloWorld(string str) { return "Hello World" + str; }}