Hi,

I used this with ExtJs 3.3

Code:
Ext.Direct.addProvider(WMS.API);
     Ext.Direct.on('exception', function(e) {
         Ext.Msg.alert('Exception', e.message);
     });
And something like this to call my method

Code:
  this.entityTypeStore = new Ext.data.DirectStore({
        reader: this.entityTypeReader,    
        api : {
            read : WMS.WS_EntityType.getAll
        }
    });
How is the good way to implement this with Ext Js 4 in MVC architecture?

Thank you in advance for all the answers