Flash无法访问Web服务

时间:2011-06-02 10:01:16

标签: flash flex iis crossdomain.xml

我正在使用flex / actionscript。我创建了一个具有以下路径http://192.168.0.110/cgi/reg.cgi的网络服务?当我运行上面的url它工作正常。但是当我使用httpservice和send方法使用它时,它给了我错误。事件:registerFailure 错误描述:HTTP更新错误

mHttpService = new HTTPService();
mHttpService.url = mWebServiceUrl;
mHttpService.method = "POST";
mHttpService.addEventListener("result", httpResult);
mHttpService.addEventListener("fault", httpFault);


var request:Object = new Object();
request.username = user;
request.identity = id;
mHttpService.cancel();
mHttpService.send(request);

1 个答案:

答案 0 :(得分:0)

据我所知,webservice应该是格式化的。 例如:http://www.w3schools.com/webservices/tempconvert.asmx?WSDL(这可以尝试!)。

此网络服务的链接是http://www.w3schools.com/webservices/tempconvert.asmx

所以,我想。 Web服务链接存在问题。 希望,这有帮助。