Hi,

Tanks for your answer, but im not seem the solution yet. I have dificult whith
XML structure.

My webservice return the XLM below. I need to populate the array with '"
MailingList" content .


After too many trys, now I using the code below , but have a error when get
length off array for use in loop FOR ( ... :

TypeError: Error #1009: Cannot access a property or method of a null object
reference.

Thanks
Max


[Bindable]
private var arrayDataCampanha:Array;

[Bindable]

private function result_WS_DT(event:ResultEvent):void
{
// Convert result to array
alldataSeting = event.result.Tables["Mailinglist"].Rows as Array;
// Check the array content
if (event.result.Tables["Mailinglist"].Rows != null)
{
// loop to populate Dataprovider
for (var i:Number = 0; i < alldataSeting.length; i++)
{
// Fill Dataprovider atributs
arrayDataCampanha[i] = {name: alldataSeting[i].noMailing,
value: alldataSeting[i].Discagem,
idseting:alldataSeting[i].IdMailing,prospects:alldataSeting[i].prospects };
}
}

.Net WebServer Result.

<?xml version="1.0" encoding="utf-8" ?>
- <DataTable xmlns="http://tempuri.org/">
- <xs:schema id="NewDataSet" xmlns=""
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xs:element name="NewDataSet" msdata:IsDataSet="true"
msdata:MainDataTable="Mailinglist" msdata:UseCurrentLocale="true">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="Mailinglist">
- <xs:complexType>
- <xs:sequence>
<xs:element name="IdMailing" type="xs:string" minOccurs="0" />
<xs:element name="noMailing" type="xs:string" minOccurs="0" />
<xs:element name="prospects" type="xs:string" minOccurs="0" />
<xs:element name="Discagem" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
- <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
- <DocumentElement xmlns="">
- <Mailinglist diffgr:id="Mailinglist1" msdata:rowOrder="0">
<IdMailing>01</IdMailing>
<noMailing>02 Ativo LD</noMailing>
<prospects>1000</prospects>
<Discagem>500</Discagem>
</Mailinglist>
- <Mailinglist diffgr:id="Mailinglist2" msdata:rowOrder="1">
<IdMailing>02</IdMailing>
<noMailing>02 Ativo LD</noMailing>
<prospects>2000</prospects>
<Discagem>600</Discagem>
</Mailinglist>
</DocumentElement>
</diffgr:diffgram>
</DataTable>