Creating web services
ColdFusion MX can automatically publish CFC methods as web services. To publish a CFC
method as a web service, you specify the
tag. ColdFusion generates all the required Web Services Description Language (WSDL) code and
exports the CFC methods. For more information on creating web services in ColdFusion, see
Chapter 32, "Using Web Services," on page
Creating Macromedia Flash Remoting elements
Flash applications that use Flash Remoting MX can access CFC methods by using the CFC path
as the service name in a NetServices
the CFC methods by appending the method name to the service name, as the following example
shows:
gatewayConnection = NetServices.createGatewayConnection();
myServiceObject = gatewayConnection.getService("myService", this);
myServiceOjbect.myFunction( { dept: Sales, name: BobZ });
For more information on creating CFCs for Flash Remoting MX, see
ColdFusion components" on page
Calling CFC methods using a URL or form
Clients can directly call CFC methods using a URL or by submitting form fields. In these cases
the CFC method is responsible for generating all HTML that is returned to the client.
ColdFusion component features and use
This section describes the elements and features of CFCs. It indicates how CFCs embody the
concepts described in the
describe in detail, how to use these elements in a ColdFusion application.
Tags and functions for creating and using CFCs
The following table lists the required tags and functions that you use to create or use CFCs. It also
lists the tags and functions that contain CFC-specific functionality.
Tag or function
cfcomponent
cffunction
cfargument
cfproperty
cfinvoke
cfinvokeargument
cfobject
CreateObject
GetMetaData
222
Chapter 11: Building and Using ColdFusion Components
access="remote"
707.
gatewayConnection.getService
646.
"Basic component concepts"
Description
Contains a component definition; includes attributes for introspection
Defines a component method (function); includes attributes for
introspection
Defines a parameter (argument) to a method; includes attributes for
introspection
Defines variables for CFCs that provide web services; can also be used to
document component properties
Invokes a method of a CFC
Passes the name and value of a parameter to a component method
Creates a CFC instance
Creates a CFC instance
Returns the metadata of a CFC
attribute in the method's
method. Then you call
"Using Flash with
section. It introduces, but does not
cffunction
Need help?
Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?
Questions and answers