.net 无法使用参数调用php webservice

.net 无法使用参数调用php webservice,.net,web-services,windows-phone-8,.net,Web Services,Windows Phone 8,这是我的代码,我不想在windows phone应用程序中调用webservice client.DownloadStringAsync(new Uri("http://example.com/get_places_nearby.php?longitude="+itravelObj.getGPSLongitude()+"&latitude="+itravelObj.getGPSLatitude(), UriKind.Relative)); 请帮助。我想您需要将该URI更改为UriKin

这是我的代码,我不想在windows phone应用程序中调用webservice

client.DownloadStringAsync(new Uri("http://example.com/get_places_nearby.php?longitude="+itravelObj.getGPSLongitude()+"&latitude="+itravelObj.getGPSLatitude(), UriKind.Relative));

请帮助。

我想您需要将该URI更改为UriKind.Relative to UriKind.Absolute

client.DownloadStringAsyncnew Urihttp://example.com/get_places_nearby.php? 经度=+itravelObj.getGPSLongitude+&纬度=+itravelObj.getGPSLatitude, 乌里金。亲戚; 因为你从http://www.website.com