Flash remoting in Railo

The past of days a couple people asked about flash remoting. They suspected that it would not work with Railo.

Railo in version 1.0 supports only the classic way of interacting with flash remoting via calls to .cfm files. Interaction via components (.cfc) will be supported in the next beta release of Railo.

"So how you can use the "classic" way to interact with flash remoting?"

Example
create a file named /examples/echo.cfm.

In this file add the following lines for a simple echo function:


<cfset flash.result=flash.params>

Now you have a flash service called examples.echo([...]) that simply returns your parameters from your request. To test this service you need to do the following:

  1. download the generic AMF Client as part of openAMF
  2. Add the following data to the client.
    The following example is for a standard Railix version
    Gateway Url:http://localhost:8888/flashservices/gateway
    Service Nameexamples
    Service Methodecho
    arguments1,2,3
  3. have fun

The result looks like this:

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC was created by Raymond Camden. This blog is running version 5.9.1.002. Contact Blog Owner