test.ashx 957 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <%@ WebHandler Language="C#" Class="test" %>
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Web;
  6. using Newtonsoft.Json;
  7. using Newtonsoft.Json.Linq;
  8. using System.Configuration;
  9. using Curtain.DataAccess;
  10. using DK.XuWei.WebMes;
  11. public class test : IHttpHandler
  12. {
  13. public void ProcessRequest(HttpContext context)
  14. {
  15. context.Response.ContentType = "text/plain";
  16. WCF wcf = new WCF();
  17. wcf.Para.Add(new JProperty("barcode", "10000000001"));
  18. wcf.Para.Add(new JProperty("procedure_no", "110"));
  19. wcf.Para.Add(new JProperty("road_no", "0"));
  20. wcf.Para.Add(new JProperty("rack", ""));
  21. wcf.Para.Add(new JProperty("position", ""));
  22. wcf.Para.Add(new JProperty("procedure_in", "1"));
  23. string jsonStr = wcf.Get("/DKService/ExHGS3QR/AddWorkInfoHGS3_QR");
  24. }
  25. public bool IsReusable
  26. {
  27. get
  28. {
  29. return false;
  30. }
  31. }
  32. }