Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.IndexOutOfRangeException: Index was outside the bounds of the array.
- at System.Web.Services.Protocols.HttpServerType..ctor(Type type)
- at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
- at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
- [WebMethod]
- [ScriptMethod(UseHttpGet = true)]
- public string getBlah(int blah)
- {
- return "blah";
- }
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Linq;
- using System.Web;
- using System.Web.Script.Serialization;
- using System.Web.Script.Services;
- using System.Web.Services;
- namespace WebApplication2
- {
- /// <summary>
- /// Summary description for WebService1
- /// </summary>
- [WebService(Namespace = "http://www.mysite.com/")]
- [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
- [System.ComponentModel.ToolboxItem(false)]
- [System.Web.Script.Services.ScriptService]
- public class WebService1 : System.Web.Services.WebService
- {
- [WebMethod]
- [ScriptMethod(UseHttpGet = true)]
- public string AMethod(int page)
- {
- return "blah";
- }
- [WebMethod]
- [ScriptMethod(UseHttpGet = true)]
- public void Owners(string searchTerm, int pageSize, int page)
- {
- string retJson = "";
- Context.Response.Write(retJson);
- }
- [WebMethod]
- [ScriptMethod(UseHttpGet = true)]
- public string Results(List<string> counties, List<string> field2, List<string> field3, string owners, int pageSize, int page)
- {
- return "["test":"hi","test2":"bye"]";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement