0
我面临WebResponse属性它没有正确更新我的Windows Phone 7应用程序中的问题。webresponse没有更新XML
ReceiveData() // I m calling this Function recursively, With Timer.
{
strurl = "http://www.***Mylivedatawebsite.com/api/rates.php";
webRequest = (HttpWebRequest)WebRequest.Create(strurl);
webRequest.BeginGetResponse(new AsyncCallback(FinishWebRequest), null);
}
FinishWebRequest(IAsyncResult result)
{
WebResponse resp = webRequest.EndGetResponse(result);
StreamReader objReader = new StreamReader(resp.GetResponseStream());
XDocument Doc = XDocument.Load(objReader);
}
该文档在解析后包含相同的值。请帮助我。
尝试这一个Sohail,它会抛出[System.Net.WebException远程服务器返回一个错误:NotFound。] – KATy
在Id前面添加问号,并将它们作为一个虚拟参数工作。谢谢Ton Sohail! – KATy