The service framework wraps most functionality of the underlying clients (FTPClient, HTTPClient, and so on), but you can directly configure the underlying clients when needed.
For example, if you want to cache web service calls for
HTTPService
, in your createRequest
callback, use the getClient
method to get the underlying
HTTPClient
object for the service and use the
HTTPClient
class enableCaching
method to
cache the request.
LocalServiceRegistry.createService("yourService", {
createRequest: function(svc:HTTPService, args) {
svc.client.enableCaching(1000);
[...]