c#中序列化接口返回的数据
HttpWebResponseresponse=(HttpWebResponse)request.GetResponse();StreamReaderreader=new...
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding);
string res = reader.ReadToEnd();
接口返回 res 如下
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">{
"UserHNA_ConfirmPay":
[{
"Syswin":[{"status":0,"msg":"确认缴费失败,实收凭证[S78000000000000]没有缴费记录需要确认","Code":"201"}]
}]
}
</string>
怎么把这个序列化出来 展开
StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding);
string res = reader.ReadToEnd();
接口返回 res 如下
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">{
"UserHNA_ConfirmPay":
[{
"Syswin":[{"status":0,"msg":"确认缴费失败,实收凭证[S78000000000000]没有缴费记录需要确认","Code":"201"}]
}]
}
</string>
怎么把这个序列化出来 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询