Follow Flex After Dark on Twitter

Flex Remoting (RPC)

Flex Remoting... The Flex Remoting API is in the mx.rpc package and sub-packages.

Types of RPC services:

  • HTTP - make HTTP calls to web servers
  • Web Services - call SOAP + WSDL based web-services
  • Remoting - call remote object servers such as ColdFusion or Java using BlazeDS

AsyncToken and Responder

Two objects are especially important when programming with Flex's Remoting/RPC APIs:

  1. An asynchronous call returns a token
    1. Any arbitrary information may be attached to the token for use later
  2. A responder is attached to the token
  3. ... (time passes)
  4. The call will result in either a result or a fault
    1. The responder's result function is called
    2. Or the responder's fault function is called
   var token:AsyncToken = httpService.send();
   token.data = "some data";
   
   var responder:IResponder = new ExampleResponder();
   token.addResponder( responder );
   ...

Related Docs:

Related Docs
  • Flex HTTP Service Flex provides an HTTP Service in its RPC (Remoting) package for standard HTTP operations.
Recent Docs
  • Flex Remoting Flex Remoting and the RPC package provide robust, asynchronous communication with remote servers via HTTP and Web Services.
  • Flex Projects Overview of the different types of projects that can be created with Flex Builder.
  • Flex Metadata Flex Metadata
  • MXML Language Overview of the MXML programming language used by Flex.
  • Flex HTML Text Text Controls support the htmlText property.
Random Docs