1、读取本地JSON文件
string filepath = HttpContext.Current.Request.PhysicalApplicationPath + "test.json";
string resultJson = File.ReadAllText(filepath, Encoding.Default);//加编码,不然乱码
2、读取本地XML文件
XmlDocument xd = new XmlDocument();
xd.Load(HttpContext.Current.Request.PhysicalApplicationPath + "\\" + "PS10022.xml");
string resultXML = xd.InnerXml;