这是我的代码,我不打算在Windows Phone应用程序中调用webservice。
client.DownloadStringAsync(new Uri("http://example.com/get_places_nearby.php?longitude="+itravelObj.getGPSLongitude()+"&latitude="+itravelObj.getGPSLatitude(), UriKind.Relative));
请帮助..
答案 0 :(得分:0)
认为您需要将该URI更改为UriKind.Relative
至UriKind.Absolute
client.DownloadStringAsync(new Uri("http://example.com/get_places_nearby.php?
longitude="+itravelObj.getGPSLongitude()+"&latitude="+itravelObj.getGPSLatitude(),
UriKind.Relative));
因为您从http://www.website.com