联系HTTPS REST服务时出现2032 Flex错误

时间:2015-06-16 19:39:04

标签: actionscript-3 rest flex ssl https

我是使用flex / actionscript代码的新手。我正在从我的flex / actionscript代码中进行GET / HTTPS REST服务调用。 这是我的代码

  var service:HTTPService = new HTTPService();
        service.url = "https://wsexample/v2/";
        service.method = "GET";
        service.addEventListener("result", serviceResult);
        service.addEventListener("fault", serviceFault);
        service.send();

这是一个HTTPS服务调用,我收到以下错误:

faultCode:Server.Error.Request faultString:'HTTP request error' 
faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"].
 URL: https://wsexample/v2/'

当我从Chrome浏览器打开HTTPS URL时,出现NET :: ERR_CERT_AUTHORITY_INVALID错误以及以下信息:

This server could not prove that it is wsexample; its security certificate 
is not trusted by your computer's operating system. 
This may be caused by a misconfiguration or an attacker intercepting your connection.

然后点击此链接 - >继续进行wsexample(不安全)。执行此操作后,REST Web服务调用似乎可以从我的flex应用程序中运行。

非常感谢任何帮助。

由于

1 个答案:

答案 0 :(得分:0)

如何在运行应用程序的计算机上配置灵活服务?确保您的flex编译器文件具有正确的设置。除此之外,我会检查以确保Windows防火墙设置具有适用于您的应用程序的规则集。最后,确保将IIS设置为信任来自应用程序的连接。听起来你有一个产生警报的安全权限问题。

相关问题