One of the lesser-known features of the Flash Remoting gateway is to act as a proxy to a web service. Using this proxy, you can effectively circumvent the cross-domain restrictions in the flash player, as all calls are local to the flash movie.
It turns out to be very easy to make the call. It is almost exactly the same as calling a local CFC
What changes is that instead of setting our service to "myPath.to.cfc", we set it to the actual web service address:
myService = connection.getService(
"http://weblogs.macromedia.com/mxna/webservices/mxna2.cfc?wsdl", responseHandler );
and then call the desired function:
I am using the MXNA Web Service (http://weblogs.macromedia.com/mxna/webservices/mxna2.cfc?wsdl) as an example.
The tricky part is that the Web Service Proxy is not enabled by default in ColdFusion’s Remoting gateway. To enable it, open the gateway-config.xml file in C:\CFusionMX7\wwwroot\WEB-INF (or similar path) and uncomment