でSSL我々は、.NET CF 3.5/Windows Mobileの6中にいくつかの非常に単純なJSONのWebサービスへのいくつかの呼び出しを作っているし、我々がこのバグに遭遇したことが表示されます。 http://blogs.msdn.com/andrewarnottms/archive/2007/11/19/why-net-compact-framework-fails-to-call-some-https-web-servers.aspxのHttpWebRequestと.NET CF 3.5
これは実際にはほぼ2年後のことですが、これは修正されていませんか? .NET CF 3.5から安全なWebサービスを呼び出す、かなり一般的なシナリオのようです。 回避策がいくつかあります。この問題の修正または回避策がある場合は誰でも知っていますか?ここで
は、私たちが呼び出しを行うために使用しているコードです:
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;
}
oof、応答に感謝します。これは楽しいはずです。 – jspru