Help please with xml webservice
Hi
Can any one tell me why the follow does not work for me, i cant see what is wrong with it
I have a web service that out put the following xml
<?xml version="1.0" encoding="utf-8" ?>
- <ArrayOfContact xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/">
- <contact>
<ID>1</ID>
<FirstName>bob</FirstName>
<LastName>brown</LastName>
</contact>
- <contact>
<ID>2</ID>
<FirstName>jack</FirstName>
<LastName>doe</LastName>
</contact>
</ArrayOfContact>
then i have the following Javascript
var data = new Active.XML.Table;
data.setURL("http://localhost/MyWebService/Service1.asmx/GetContact");
//data.setParameter("", ""); no params needed
data.setNamespace("xi", "http://tempuri.org/");
data.setColumns(["xi:FirstName"]);
data.request();
var obj = new Active.Controls.Grid;
obj.setDataModel(data);
obj.setColumnProperty("texts", ["FirstName"]);
document.write(obj);
Why does this not work??
Can any one tell me why the follow does not work for me, i cant see what is wrong with it
I have a web service that out put the following xml
<?xml version="1.0" encoding="utf-8" ?>
- <ArrayOfContact xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/">
- <contact>
<ID>1</ID>
<FirstName>bob</FirstName>
<LastName>brown</LastName>
</contact>
- <contact>
<ID>2</ID>
<FirstName>jack</FirstName>
<LastName>doe</LastName>
</contact>
</ArrayOfContact>
then i have the following Javascript
var data = new Active.XML.Table;
data.setURL("http://localhost/MyWebService/Service1.asmx/GetContact");
//data.setParameter("", ""); no params needed
data.setNamespace("xi", "http://tempuri.org/");
data.setColumns(["xi:FirstName"]);
data.request();
var obj = new Active.Controls.Grid;
obj.setDataModel(data);
obj.setColumnProperty("texts", ["FirstName"]);
document.write(obj);
Why does this not work??
Luke Farbotko
September 30,