CodePlexProject Hosting for Open Source Software
HttpClient client = new HttpClient();
client.BaseAddress = new Uri("http://localhost:7500/Wcf1.svc/People");
HttpResponseMessage resp = client.GetAsync("").Result;
//string eee = resp.Content.ReadAsStringAsync().Result;
List<person> perlist = resp.Content.ReadAsAsync<list<person>>().Result;
I am trying to get a List<person> from my service.
Can someone help with the syntax?
Does the above code not work? What issue are you running into?
Daniel, the perList is empty.
If I uncomment the line above it and populate the eee string, it is populated with a json collection of 4 people.
Populating a List<Person> perList does ot work, it has a count of 0.
Thank you for your help.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.