0
私はxamarinのWebサイト全体を見てきましたが、Webサービスを呼び出す方法は数多くあります。これまで、チュートリアルの例を繰り返すたびに、何かが間違っていました。だから、どうすれば私が働くことができるjsonを返すphp webserviceを呼び出すことができますか?Xamarin.PCLプロジェクトでwebserviceを呼び出す方法
は、ここで私がやったことです:ここでは
private async Task<JsonValue> Connexion_Webservice(string url)
{
// Creates the HTTP Request
HttpWebRequest requete = (HttpWebRequest)HttpWebRequest.Create(new Uri(url));
requete.ContentType = "application/json";
requete.Method = "GET";
//Sends the request and wait for the response
using (WebResponse response = await requete.BeginGetResponse()
{
// until here I dont know what to do, what should I do ? ;
}
}