FLEX/amfPHP ActionScript error 2048

跟風遠走 提交于 2019-12-13 02:26:15

问题


Sorry about the mishmash of words in the title, but that's how confused I am. I can't even summarize the error I'm getting in a simple sentence.

This flex/amfphp application works fine on my computer, even though it accesses an Oracle database on another server. However, when I try to access it from another computer, this is the error I get. I'll try and put the most relevant code in. (My browser tell me this is an ActionScript error).

Fault faultString="Send failed"

faultCode="Client.Error.MessageSend"

faultDetail="Channel.Security.Error error Error #2048: Security Area Violation..

Couldn't load data from http://localhost/.../amfphp/gateway.php

As I said before, it works on my machine for some reason. Now, when I try to access this remotely from other machines, it seems that the PHP engine is looking for gateway.php on the localhost of that machine?? Does this mean that PHP is looking for gateway.php on the client's localhost rather than on the server??

Correct me if I'm wrong, and thanks in advance


回答1:


Your services-config.xml in Flex propably points to http://localhost/.../amfphp/gateway.php You'll need to change the endpoint in that XML file and recompile the application.

You could also create your ChannelSet at runtime. In that case you don't need the services-config.xml anymore. Take a look at http://raghuonflex.wordpress.com/2008/06/05/endpointatruntime/ for some inspiration...



来源:https://stackoverflow.com/questions/3999177/flex-amfphp-actionscript-error-2048

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!