我正在开发 windows phone 8 应用程序。
我无法使用 system.net.httpwebrequest 使用 dll;
在 windows phone 8 中,所以我需要将 http 请求转换为 webclient 任何人都可以建议如何转换它..?
private HttpWebResponse GetHttpWebResponse(HttpWebRequest webRequest)
{
HttpWebResponse response;
try
{
response = (HttpWebResponse)webRequest.GetResponse();
//GetResponse() produce error that System.Net.HttpRequest dll is missing,
//so im in need to conertr the http request to webclient.
}
catch (WebException we)
{
response = (HttpWebResponse)we.Response;
}
return response;
}
my complete Json data
[
{
"id": 01,
"address": "12asdf",
"city": " chennai",
"contact1": "",
"contact2": "",
"country": " india",
"description": "",
"name": " david",
"region": "",
"state": " 033",
"website": "",
"image": "",
"PrayerTime": {
"id": 01,
"PrayerTime1": "00:52",
"PrayerTime2": "21:04",
"PrayerTime3": "12:27",
"PrayerTime4": "05:35",
"PrayerTime5": "21:04",
"created_at": null,
"PrayerTime6": "04:01",
"updated_at": null,
"organization_id": 001
}
},.............
}