Ext.onReady(function(){ var api = { 'url' : './../rpc/', 'type': 'remoting', 'actions' : { 'Document' : [{ 'name' : 'all', 'len' : 0 }, ] } }; var provider = Ext.Direct.addProvider(api); Document.all(function(provider, response) { Ext.Msg.alert('Response', response.toSource()); }); });