1     HttpContent bw = new StringContent(StrXml, Encoding.UTF8, "application/Xml");
 2                 var Msg = await _httpClientFactory.CreateClient().PostAsync("http://xxxxx/api/kpbusiness", bw);
 3                 var ss = Msg.Content.ReadAsStringAsync();
 4                 StringReader Reader = new StringReader(ss.Result);
 5                 XmlDocument xmlDoc = new XmlDocument();
 6                 xmlDoc.Load(Reader);
 7                 XmlNodeList topM = xmlDoc.SelectNodes("//business");
 8                 string returncode;
 9                 string returnmsg;
10                 string retappid;
11                 string retid;
12                 foreach (XmlElement element in topM)
13                 {
14                      returncode = element.GetElementsByTagName("returncode")[0].InnerText;
15                      returnmsg = element.GetElementsByTagName("returnmsg")[0].InnerText;
16                      retappid = element.GetElementsByTagName("returncode")[0].InnerText;
17                      retid = element.GetElementsByTagName("returncode")[0].InnerText;
18                 }

 

相关文章:

  • 2022-12-23
  • 2021-09-07
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2021-09-26
猜你喜欢
  • 2021-07-19
  • 2022-12-23
  • 2021-12-09
  • 2022-01-14
  • 2022-12-23
  • 2021-12-08
  • 2021-10-15
相关资源
相似解决方案