In order to AJAX enable it we will have to add the following attribute to the Web Service declaration part: [System.Web.scr ipt.Services.scr iptService()]When this is done our Web Service is ready to respond to client-side Javascr ipt calls.One more
public class Service : System.Web.Services.WebService { [WebMethod] public string HelloWorld(MyUser[] users) { string s = ""; for (int i = 0; i < users.Length; i++) { s += users[i].Name; s += " "; s += users[i].Gender; } return s; }