I have been working on Windows Phone 7 application & was trying to make synchronous REST call by using HttpWebRequest.GetResponse() but the compiler was complaining that the GetResponse() is not available. I found the BeginGetResponse() and EndGetResponse() in HttpWebRequest. But as I read that these two methods are used for asynchronous calls.
Our design has been implemented to support synchronous request only, could anyone please let me know “Is there any way to make synchronous call in WP7”
You can simulate synchronous requests by blocking on an
AutoResetEventuntil the asynchronous call returns. See here for a reference implementation.