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( ).
|
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access