To use RemoteObject components, Flex Data Services or Macromedia ColdFusion MX 7.0.2 with the Remoting Update is required.
If you are using Flex Data Services, you have the option of connecting to RPC services directly or connecting to destinations defined in the services-config.xml file or a file that it includes by reference. A destination definition is a named service configuration that provides server-proxied access to an RPC service. A destination is the actual service or object that you want to call. A destination for a RemoteObject component is a Java object. A destination for an HTTPService component is a JSP page or another resource accessed over HTTP. A destination for a WebService component is a SOAP-compliant web service.
Destination definitions provide centralized administration of RPC services. They also enable you to use basic or custom authentication to secure access to destinations. You can choose from several different transport channels, including secure channels, for sending data to and from destinations. Additionally, you can use the server-side logging feature to log RPC service traffic.
Optionally, you can use an HTTPService component or a WebService component to connect to a default destination.
This section discusses the basics of declaring a service connection in MXML and configuring a destination. For information about calling a service in MXML and ActionScript, see Calling a service. For information about configuring destinations, see Configuring RPC Services.
Using a service without server-side configuration
Using an RPC component with a server-side destination