delphirest服务器与Sencha

delphirest服务器与Sencha,delphi,rest,extjs,Delphi,Rest,Extjs,在Delphi中创建了一个Rest服务器,我有一个方法:GetJSONCustomer:TJSONValue;它返回一个JSON值。浏览器,如果我键入:my_url/GetJSONCustomer工作正常 我正在尝试集成ExtJS 4以尝试读取此地址,但它被放置在链接前面:my_url/GetJSONCustomer/?\u dc=140027358513&page=1&start=0&limit=25/al,浏览器返回错误状态代码:409冲突 在Extjs中,我这样做了: Ext.define

在Delphi中创建了一个Rest服务器,我有一个方法:GetJSONCustomer:TJSONValue;它返回一个JSON值。浏览器,如果我键入:my_url/GetJSONCustomer工作正常

我正在尝试集成ExtJS 4以尝试读取此地址,但它被放置在链接前面:my_url/GetJSONCustomer/?\u dc=140027358513&page=1&start=0&limit=25/al,浏览器返回错误状态代码:409冲突

在Extjs中,我这样做了:

Ext.define('Contact', {
    extend: 'Ext.data.Model'
    fields: [{
        name: 'id',
        type: 'int'
    }, {
        name: 'name',
        type: 'string'
    }, {
        name: 'email',
        type: 'string'
    }]
});

Ext.define('ContatosStore' {
    extend: 'Ext.data.Store',
    model: 'Contact',
    proxy: {
        type: 'jsonp',

        api: {
            read: 'url_gose_here'
        },

        reader: {
            type: 'json', //json or xml
            root: 'contacts'
        },

        writer: {
            type: 'json', //json or xml
            root: 'customer.TCustomer'
            writeAllFields: true,
            encode: true,
            allowSingle: true
        }
    }
    autoLoad: true,
    autoSync: true
});

Ext.onReady(function () {
    var store = Ext.create('ContatosStore');
    //console.log(store.data);
    store.on('load', function (s) {
        console.log(s.data);
        //.............
    });
    //.............
});
我的代码哪里错了

谢谢你,查尔斯