首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何访问闪存内部的外部数据?

如何访问闪存内部的外部数据?
EN

Stack Overflow用户
提问于 2013-03-06 11:59:53
回答 1查看 1.1K关注 0票数 1

我是第一次接触闪存,我有一个闪存(.swf)文件,通过WSDL方法显示我的数据库内容。当它被加载时,我可以看到我的数据,但当它试图在内部自行刷新flash对象时,它会显示一些错误。

我使用eclipse进行开发,Tomcat7作为for服务器。

我已经将crossdomain.xml放在/Root文件夹中,并且我能够通过web浏览器点击来显示crossdomain.xml内容

代码语言:javascript
复制
"http://localhost:8080/crossdomain.xml"

(Note : 1. Both web service and flash file are running in the same server.
        2. This error occurs only before accessing any data from server, once data is accessed the error is not generating anymore)

当闪存文件尝试刷新自身时,它显示以下错误。

-->

代码语言:javascript
复制
To access external data, add a cross-domain policy file to the external data web server.



For more information, on the Adobe website, see the article "Cross-domain Policy File Specification".



If the problem persists, contact the file creator or your system administrator.


Error: Error #2032

Connection Type: Web Service

File URL: http://localhost:8080/StudentService/performance.swf

External Data URL: http://localhost:8080/StudentService/services/StudentService
EN

回答 1

Stack Overflow用户

发布于 2013-03-06 12:17:35

尝试添加to-port属性和allow-http-request-headers-from元素,如下所示。

代码语言:javascript
复制
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>
    <site-control permitted-cross-domain-policies="master-only"/>
    <allow-access-from domain="*" to-ports="*" secure="false"/>
    <allow-http-request-headers-from domain="*" headers="SOAPAction"/>
</cross-domain-policy>

谢谢。

@Leo。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15238724

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档