将数据作为XML数据发送,例如:
public void PostXml(string url, string xml)
}
接收端通过Request.InputStream读取:
byte[] byts = new byte[Request.InputStream.Length];
Request.InputStream.Read(byts,0,byts.Length);
string req = System.Text.Encoding.Default.GetString(byts);
req = Server.UrlDecode(req);
对于完整的XML数据,可以:
xmlDoc = new XmlDocument();
xmlDoc.load(Request.InputStream);
相关文章:
-
2021-08-18
-
2022-12-23
-
2021-12-16
-
2021-06-23
-
2022-12-23
-
2021-06-01
-
2021-06-25
-
2022-12-23