【问题标题】:flash cannot access the webserviceflash 无法访问 web 服务
【发布时间】:2011-06-02 10:01:15
【问题描述】:

我正在使用 flex/actionscript。我创建了一个具有以下路径http://192.168.0.110/cgi/reg.cgi 的网络服务?当我运行上面的网址时,它工作正常。但是当我使用 httpservice 和 send 方法使用它时,它给了我错误。事件:注册失败 错误描述: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);

【问题讨论】:

    标签: flash apache-flex iis crossdomain.xml


    【解决方案1】:

    据我了解,网络服务应该是格式的。 例如:http://www.w3schools.com/webservices/tempconvert.asmx?WSDL(这个可以试试!)。

    这个网络服务的链接是页面http://www.w3schools.com/webservices/tempconvert.asmx

    所以,我想。网络服务链接有问题。 希望,这会有所帮助。

    【讨论】:

    • 我正在使用开源 adobe cirrus.. 如果你能通过它,它将对我有 gr8 帮助..我很抱歉使用了错误的词 webservice。 httprequest 会在这个 url 上发布一个帖子并获取响应。如果我在我的服务器 192.168.0.209 上运行该页面可以正常工作.. 但是当我在本地计算机上运行它时会出错.. 我已经在本地和 209 上托管了 cgi.. 当我在本地运行我的应用程序时它会访问本地 cgi .. 如果我在 209 上运行它,它将访问 209 cgi 服务.. 问题出在本地 .. 它没有返回响应。
    猜你喜欢
    • 2011-05-23
    • 2014-07-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-25
    • 2012-04-05
    • 1970-01-01
    相关资源
    最近更新 更多