日期:2014-05-18 浏览次数:20842 次
using System.Collections; using System.Web.Services; using System.Web.Services.Protocols; namespace _Test { /// <summary> /// Summary description for $codebehindclassname$ /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class Handler1 : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; context.Response.Write("Hello World"); // Resuest context.Request.Form[0]; } public bool IsReusable { get { return false; } } } }