Hi everyone,
I need your help on this plese
The WebService return this :
Code:
- <ArrayOfAnyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.creationslabs.pt/webservices">
<anyType xsi:type="xsd:string">00001</anyType>
<anyType xsi:type="xsd:string">5606584000013</anyType>
<anyType xsi:type="xsd:string">RELOGIO LV277ME</anyType>
<anyType xsi:type="xsd:string">00010</anyType>
<anyType xsi:type="xsd:string">5606584000105</anyType>
<anyType xsi:type="xsd:string">RELOGIO F1143/BE</anyType>
</ArrayOfAnyType>
By this code (ArrayList)
Code:
<WebMethod()> _
Public Function gceArtigos(ByVal strServerVirg ... ) As ArrayList
'BASICO
Dim MyResults As DataSet
MyResults = ...'Resultado de uma funcao não importante , busca aos dados ao SQL, como DataSet
'ARRAY PARA O FLEX
Dim MyArrayList As ArrayList = New ArrayList
For intCounter As Integer = 0 To MyResults.Tables(0).Rows.Count - 1
MyArrayList.Add(MyResults.Tables(0).Rows(intCounter).Item(0))'coluna cod artigo
MyArrayList.Add(MyResults.Tables(0).Rows(intCounter).Item(1))'coluna cod barras
MyArrayList.Add(MyResults.Tables(0).Rows(intCounter).Item(2))'coluna desc
Next
Return MyArrayList
-But I want this type or Return, instead of the first..
Code:
<ArrayOfAnyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.creationslabs.pt/webservices">
+<Artigo>
<cod>00001</cod>
<barras>5606584000013</barras>
<desc>RELOGIO LV277ME</desc>
-</Artigo>
+<Artigo>
<cod>00001</cod>
<barras>5606584000013</barras>
<desc>RELOGIO LV277ME</desc>
-</Artigo>
etc...
</ArrayOfAnyType>
Thank you very much for the help
Core