Service Name Mappings

The different types of services that ColdFusion supports are referenced in different ways from the client when calling NetConnection.getService( ). For example, you must reference a service implemented as a ColdFusion page differently than a ColdFusion Component. Table 5-2 shows how different types of services should be referenced using getService( ).

Table 5-2. How to reference remote services in ColdFusion

Service type

Name of service

Name of remote function

ColdFusion page

The directory that the ColdFusion page (.cfm file) resides in, expressed in dot notation

The name of the ColdFusion page that you want to invoke in the specified directory

ColdFusion Component

The entire path to the ColdFusion Component (.cfc component file) from the web root, expressed in dot notation

The name of the function in the specified .cfc file

Server-Side ActionScript

The full path to the SSAS file (.asr file) from the web root, expressed in dot notation

The name of the function in the specified .asr file

Order of Service Lookup

In order to adapt to a variety of software architectures and personal preferences, ColdFusion supports Flash Remoting services implemented in a few different ways. You can write your remote services as ColdFusion pages, ColdFusion Components, or Server-Side ActionScript. When the Flash client references a remote service on the ColdFusion Server, ColdFusion looks up the service on the server and invokes it, returning the result to the Flash ...

Get Flash Remoting: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.