View Full Version : Load a Webservice response(XML-data) into an Ext Store

11 Jan 2012, 12:25 AM
How can I load a Webservice response(XML-data) into an Ext Store to bind the Webservice response on Ext controls? It works well for file-based data sources. Here my examlpe:

Ext.define('modcar', {
extend: 'Ext.data.Model',
fields: [
{name: 'id', mapping: '@ID'},
{name: 'car', mapping: '@CAR'}

stocar = Ext.create('Ext.data.Store', {
model: 'modcar',
autoLoad: false,
proxy: {
type: 'ajax',
url : cURL_APP_ROOT + 'js/lib/xml/cars.xml',
reader: {
type: 'xml',
record: 'xy'
But it does not work, when I load a Webservice response in a "store" instead of a XML file .
I tried to initialize the parameter "url" by a webservice-URL and not by theXML file. But without success.

Thank you for your help


11 Jan 2012, 8:39 AM
Is the webservice on the same domain or cross domain?

16 Jan 2012, 3:02 AM
Sorry for late reply, i was on holidays :-). It’s on the same domain.