I would like to populate a grid with an array of type T where that array is the result of a call to a SOAP webservice. I tried ScriptTagProxy and HttPProxy to no avail. The grid itself shows ok but no data shows up. The webmethod is like foo[] getFoos() and works ok and does produce a non empty result set but how do I connect that to Ext.data.Store so that it shows in the grid? btw, a foo is just a string, I just call it bar.

Script code is like this:


var ds = new Ext.data.Store({
proxy: new Ext.data.ScriptTagProxy({url:
'local web service with with a foo[] getFoos() method'
reader: new Ext.data.ArrayReader({}, [
{name: 'bar', type: 'string'}

var cm = new Ext.grid.ColumnModel([
{header: "Bar", width: 120, dataIndex: 'bar'}

cm.defaultSortable = true;

var grid = new Ext.grid.Grid('grid-example', {
ds: ds,
cm: cm