<%@ WebHandler Language="C#" Class="Handler" %> using System; using System.Web; using com.harbormist; public class Handler : IHttpHandler { Random r = new Random(); public void ProcessRequest (HttpContext context) { String myParam = context.Request.Params.Get("clientkey"); string answer = "soon to be a quote"; try { Quote q = new Quote(); answer = q.GetQuote(); } catch { } context.Response.ContentType = "text/xml"; context.Response.AddHeader("Cache-Control", "no-cache"); context.Response.Write(""); context.Response.Write(""); context.Response.Write("" + answer + ""); context.Response.Write("" + myParam + ""); context.Response.Write(""); } public bool IsReusable { get { return false; } } }