public void ProcessRequest(HttpContext context) { //Debugger.Launch(); context.Response.ContentType = "text/plain"; String strLocationSent = ""; using (var reader = new StreamReader(context.Request.InputStream)) { var stream = context.Request.InputStream; byte[] buffer = new byte[stream.Length]; stream.Read(buffer, 0, buffer.Length); String mStrID = Encoding.UTF8.GetString(buffer); oDFLocation = new DFCls_LocationForm(mStrID); strLocationSent = oDFLocation.GetLocation(); } context.Response.Write(strLocationSent); }
public void ProcessRequest(HttpContext context) { //Debugger.Launch(); context.Response.ContentType = "text/plain"; using (var reader = new StreamReader(context.Request.InputStream)) { var stream = context.Request.InputStream; byte[] mXML = new byte[stream.Length]; stream.Read(mXML, 0, mXML.Length); oDFLocation = new DFCls_LocationForm(mXML); if (oDFLocation.SaveLocation()){ context.Response.Write(oDFLocation.GetLocation()); } else{ context.Response.Write("failure"); } } }
public void ProcessRequest(HttpContext context) { //Debugger.Launch(); context.Response.ContentType = "text/plain"; var mStrSuccess = "failure"; using (var reader = new StreamReader(context.Request.InputStream)) { var stream = context.Request.InputStream; byte[] buffer = new byte[stream.Length]; stream.Read(buffer, 0, buffer.Length); String mStrID = Encoding.UTF8.GetString(buffer); oDFLocation = new DFCls_LocationForm(mStrID); if (oDFLocation.DeleteLocation()){ mStrSuccess = "success"; } } context.Response.Write(mStrSuccess); }