By default, the crossdomain.xml file would live in the webroot on the
server hosting the ColdFusion remoting service and in this policy file
it would allow access from SWFs served from some other server.
 
http://www.mycoldfusionserver.com/crossdomain.xml
 
...which would contain:
 
<cross-domain-policy>
    <allow-access-from domain="*.myswfserver .com" />
</cross-domain-policy>
 
Your MXML RemoteObject tag in you SWF might look like this:
 
<mx:RemoteObject id="myRO" destination="ColdFusion"
endpoint="http://www.mycoldfusionserver.com/flex2gateway/";
result="resultHandler(event)" fault="faultHandler(event)" />
 
And the URL to load your SWF might look like this:
 
http://www.myswfserver.com/myapplication/something.swf
 
 
 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Bill Brown
Sent: Monday, April 16, 2007 6:07 PM
To: [email protected]
Subject: [flexcoders] Flex accessing ColdFusion Remoting service on a
seperate server?



I am trying to get a Flex application to read a getAll() method from a
ColdFusion Remoting service on a seperate server.
 
My current (working) set-up has the Flex .swf on the same server as the
ColdFusion Remoting service. 
I would like to host the .swf on a different server, yet still access
the same ColdFusion Remoting service. 
I'm sure this somehow involves the crossdomain.xml file and web/INF, but
I don't know what magical combination of tweaks are required to get this
working.
Does anyone know if any tutorials to get this working?
 
Thanks,
BB
 

 

Reply via email to