This content has been marked as final. Show 3 replies
You could create a proxy CFC under your webroot.
You can easily invoke the CFC remotely as a webservice. It could be very easy to achieve.
webservice = " http://localhost/cfcomponent/coldcomponent.cfc?wsdl"
method = "method_name"
returnVariable = "foo">
Yes, it is possible to map to the CFC directly, by setting the access attribute to "remote". However there is a catch. For this to work through a mapping, you must edit the services-config.xml file that is located in the cfusion.ear\cfusion.war\WEB-INF\flex directory of your CF server instance. Somewhere around line 22 of that file you should see:
change that to:
I'm not sure if you need to restart the CF instance or not.
However, from a security standpoint I would recommend using a remote facade similar to what jmmorgan suggested. In fact, if you use ColdSpring, you can get ColdSpring to generate this for you.
Hope this helps,