将数据作为XML数据发送,例如:

 

Request.InputStream   将数据作为XML数据发送public void PostXml(string url, string xml)
}

接收端通过Request.InputStream读取:

 

 

Request.InputStream   将数据作为XML数据发送byte[] byts = new byte[Request.InputStream.Length];
Request.InputStream   将数据作为XML数据发送Request.InputStream.Read(byts,
0,byts.Length);
Request.InputStream   将数据作为XML数据发送
string req = System.Text.Encoding.Default.GetString(byts);
Request.InputStream   将数据作为XML数据发送req 
= Server.UrlDecode(req);

 

 

对于完整的XML数据,可以: 

 

Request.InputStream   将数据作为XML数据发送xmlDoc = new XmlDocument();
Request.InputStream   将数据作为XML数据发送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
猜你喜欢
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案