I've been looking all over the xamarin website and ther is dozens of way to call a webservice. Until now, each time i try to repeat the example that is in the tutorial, something goes wrong. So, how can I simply call a php webservice that returns me a json that I can work with ?
Here is what I did:
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 ? ;
}
}