Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 as3沙盒安全性违反http://schemas.xmlsoap.org/soap/encoding/ 我实现了一个GSOAP C++ WebService服务器,用Flash(AS3)访问,只要我在本地测试.SWF,所有的东西都运行得很流畅,WSDL被加载得很好,而且即使在外部IP上运行的服务器也已经运行了。p>_Actionscript 3_Security_Wsdl_Sandbox_Crossdomain.xml - Fatal编程技术网

Actionscript 3 as3沙盒安全性违反http://schemas.xmlsoap.org/soap/encoding/ 我实现了一个GSOAP C++ WebService服务器,用Flash(AS3)访问,只要我在本地测试.SWF,所有的东西都运行得很流畅,WSDL被加载得很好,而且即使在外部IP上运行的服务器也已经运行了。p>

Actionscript 3 as3沙盒安全性违反http://schemas.xmlsoap.org/soap/encoding/ 我实现了一个GSOAP C++ WebService服务器,用Flash(AS3)访问,只要我在本地测试.SWF,所有的东西都运行得很流畅,WSDL被加载得很好,而且即使在外部IP上运行的服务器也已经运行了。p>,actionscript-3,security,wsdl,sandbox,crossdomain.xml,Actionscript 3,Security,Wsdl,Sandbox,Crossdomain.xml,但是当我把.swf放到网上的那一刻,它就出现了沙盒安全违规行为,对标准模式痛哭流涕,比如: Error: [strict] Ignoring policy file at http://schemas.xmlsoap.org/crossdomain.xml due to incorrect syntax. See http://www.adobe.com/go/strict_policy_files to fix this problem. *** Security Sandbox Vi

但是当我把.swf放到网上的那一刻,它就出现了沙盒安全违规行为,对标准模式痛哭流涕,比如:

Error: [strict] Ignoring policy file at http://schemas.xmlsoap.org/crossdomain.xml 
due to incorrect syntax.  See http://www.adobe.com/go/strict_policy_files to fix this 
problem.

*** Security Sandbox Violation ***
Connection to http://schemas.xmlsoap.org/soap/encoding/ halted - not permitted from 
http://mydomain.com/main.swf
Error: Request for resource at http://schemas.xmlsoap.org/soap/encoding/ by requestor  
from http://mydomain.com/main.swf is denied due to lack of policy file 
permissions.
有人能帮我解决那个问题吗

或者有没有一种好方法可以定义一个简单的webservice方法(比如stringResult= 命令(stringSessionId、stringCommand、stringParams、stringResult))而不加载 .wsdl文件?如果我有这种可能性,我就不会在沙箱上绊倒了- 东西


感谢您的帮助。

缺少跨域策略文件。它应该在某个位置。您可以从本地计算机加载“wsdl”,因为您的沙箱是本地受信任的(即最方便的沙箱)。因此,目前我无法在flash中实现这一点,除非在所需位置有跨域策略文件。

但是您可以尝试加载wsdl。

Flash不允许从承载SWF的域以外的域加载内容,除非这些域允许您这样做。远程域可以选择允许域中的主权财富基金使用托管在其web根目录下的crossdomain.xml策略文件从其加载内容

以下是一些示例策略文件:。查看有关策略文件的链接以了解更多信息

错误消息“由于语法不正确而忽略”表示策略文件存在,但格式不正确或存在一些语法错误。但是我在
http://schemas.xmlsoap.org/crossdomain.xml


您的web服务托管在哪里?您试图从
http://schemas.xmlsoap.org/soap/encoding/

谢谢你的评论。这里真正的问题是,gSoap生成的wsdl文件试图“访问”各地的这些域,所以跨域的东西不在我的掌握之中。不管怎样,我现在通过手工编写wsdl解决了这个问题,没有了wsdl gsoap的巨大膨胀,所以它只是访问w3c.*域,它们显然是跨域的 对