We're making some calls to some very simple JSON web services in .NET CF 3.5 / Windows Mobile 6 and it appears that we've run into this bug: http://blogs.msdn.com/andrewarnottms/archive/2007/11/19/why-net-compact-framework-fails-to-call-some-https-web-servers.aspx
Is it really almost two years later and this isn't fixed? Seems like a pretty common scenario , calling secure web services from .NET CF 3.5. There has to be some workaround. Anyone know if there is a fix or workaround for this issue?
Here is the code we're using to make the calls:
private string GetJsonResponse(string command, Dictionary<string, string> parameters)
{
string requestUri = BuildRequestUri(command, parameters);
HttpWebRequest webRequest = (HttpWebRequest)HttpWebRequest.Create(requestUri);
webRequest.AllowWriteStreamBuffering = true;
cookieManager.PublishCookies(webRequest);
HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse();
string jsonResponse = string.Empty;
using (StreamReader streamReader = new StreamReader(webResponse.GetResponseStream()))
{
jsonResponse = streamReader.ReadToEnd();
}
webResponse.Close();
return jsonResponse;
}