WebService Xml Binding to Grid
Hi,
I am guessing that there is a sample to bind XML retuned by Web Service (.NET) call. Could anyone point me to correct sample code or tell me where am I going wrong in the following code. I have verified that the XML retuned by the Web Service is valid. I have checked by savin the XML retuned by the Web Service in a file and the poiting setURL to that file; it works fine in that case. But when I change the setURL to point to the Web Service, the grid is blank.
var table = new AW.XML.Table;
// provide data URL
table.setURL("XmlSource.asmx/getCompanies");
table.setRequestMethod("POST");
// start asyncronous data retrieval
table.request();
table.response = function(text){
alert(text.xml);
obj.setCellModel(table);
obj.refresh();
}
var obj = new AW.UI.Grid;
obj.setColumnCount(6);
document.write(obj);
Thanks,
Pushpendu
I am guessing that there is a sample to bind XML retuned by Web Service (.NET) call. Could anyone point me to correct sample code or tell me where am I going wrong in the following code. I have verified that the XML retuned by the Web Service is valid. I have checked by savin the XML retuned by the Web Service in a file and the poiting setURL to that file; it works fine in that case. But when I change the setURL to point to the Web Service, the grid is blank.
var table = new AW.XML.Table;
// provide data URL
table.setURL("XmlSource.asmx/getCompanies");
table.setRequestMethod("POST");
// start asyncronous data retrieval
table.request();
table.response = function(text){
alert(text.xml);
obj.setCellModel(table);
obj.refresh();
}
var obj = new AW.UI.Grid;
obj.setColumnCount(6);
document.write(obj);
Thanks,
Pushpendu
Pushpendu
July 25,