1

私はフラッシュを初めて使用します。WSDL メソッドを使用してデータベースのコンテンツを表示するためのフラッシュ (.swf) ファイルがあります。ロードするとデータが表示されますが、フラッシュオブジェクトを内部で更新しようとするとエラーが表示されます。

私は開発にEclipseを使用しており、WebサーバーとしてTomcat 7を使用しています。

また、crossdomain.xml を /Root フォルダーに配置しました。

"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)

フラッシュ ファイルがそれ自体を更新しようとすると、次のエラーが表示されます。

-->

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
4

1 に答える 1

0

to-port 属性と allow-http-request-headers-from 要素を次のように追加してみてください。

<?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>

ありがとう。

@レオ。

于 2013-03-06T04:17:34.513 に答える