locked
how to consume web api in windows phone8 app RRS feed

  • Question

  • hi,

    I tried to consume web api in windows phone 8 app but i am unable to get the content and the status code was 404.

                

    HttpClient client = new HttpClient();
               HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, "http://localhost:7407/api/Values");
                request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

                HttpResponseMessage response = await client.SendAsync(request);

    please correct the above code for getting the content



    srujana

    Sunday, December 21, 2014 2:16 PM

Answers

All replies