Hello folks,

I have the following returned from a webservice:

---------------- begin code ----------------

         <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
            <soap:Body>
               <ns1:findAllByModuleResponse
xmlns:ns1="http://www.fuxiontechnologies.com/SectionService";>
                  <ns1:sectionSet>
                     <ns2:Section
xmlns:ns2="http://objects.model.fuxiontechnologies.com";>
                        <assetType
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <description>Jornal</description>
                           <id>-1</id>
                        </assetType>
                        <id
xmlns="http://objects.model.fuxiontechnologies.com";>2</id>
                        <module
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <id>3</id>
                           <moduleName>BIBLIOTECA</moduleName>
                        </module>
                        <sectionName
xmlns="http://objects.model.fuxiontechnologies.com";>JORNAIS</sectionName>
                     </ns2:Section>
                     <ns2:Section
xmlns:ns2="http://objects.model.fuxiontechnologies.com";>
                        <assetType
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <description>Acta de Reunião</description>
                           <id>-1</id>
                        </assetType>
                        <id
xmlns="http://objects.model.fuxiontechnologies.com";>4</id>
                        <module
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <id>3</id>
                           <moduleName>BIBLIOTECA</moduleName>
                        </module>
                        <sectionName
xmlns="http://objects.model.fuxiontechnologies.com";>ACTAS DE
REUNIÕES</sectionName>
                     </ns2:Section>
                     <ns2:Section
xmlns:ns2="http://objects.model.fuxiontechnologies.com";>
                        <assetType
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <description>Documento</description>
                           <id>-1</id>
                        </assetType>
                        <id
xmlns="http://objects.model.fuxiontechnologies.com";>3</id>
                        <module
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <id>3</id>
                           <moduleName>BIBLIOTECA</moduleName>
                        </module>
                        <sectionName
xmlns="http://objects.model.fuxiontechnologies.com";>MANUAIS E
REGULAMENTOS INTERNOS</sectionName>
                     </ns2:Section>
                     <ns2:Section
xmlns:ns2="http://objects.model.fuxiontechnologies.com";>
                        <assetType
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <description>Plano de Actividade</description>
                           <id>-1</id>
                        </assetType>
                        <id
xmlns="http://objects.model.fuxiontechnologies.com";>8</id>
                        <module
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <id>3</id>
                           <moduleName>BIBLIOTECA</moduleName>
                        </module>
                        <sectionName
xmlns="http://objects.model.fuxiontechnologies.com";>PLANOS DE
ACTIVIDADES</sectionName>
                     </ns2:Section>
                     <ns2:Section
xmlns:ns2="http://objects.model.fuxiontechnologies.com";>
                        <assetType
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <description>Artigo</description>
                           <id>-1</id>
                        </assetType>
                        <id
xmlns="http://objects.model.fuxiontechnologies.com";>9</id>
                        <module
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <id>3</id>
                           <moduleName>BIBLIOTECA</moduleName>
                        </module>
                        <sectionName
xmlns="http://objects.model.fuxiontechnologies.com";>GARIMPO</sectionName>
                     </ns2:Section>
                     <ns2:Section
xmlns:ns2="http://objects.model.fuxiontechnologies.com";>
                        <assetType
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <description>Livro</description>
                           <id>-1</id>
                        </assetType>
                        <id
xmlns="http://objects.model.fuxiontechnologies.com";>1</id>
                        <module
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <id>3</id>
                           <moduleName>BIBLIOTECA</moduleName>
                        </module>
                        <sectionName
xmlns="http://objects.model.fuxiontechnologies.com";>LIVROS</sectionName>
                     </ns2:Section>
                     <ns2:Section
xmlns:ns2="http://objects.model.fuxiontechnologies.com";>
                        <assetType
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <description>Apresentação</description>
                           <id>-1</id>
                        </assetType>
                        <id
xmlns="http://objects.model.fuxiontechnologies.com";>5</id>
                        <module
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <id>3</id>
                           <moduleName>BIBLIOTECA</moduleName>
                        </module>
                        <sectionName
xmlns="http://objects.model.fuxiontechnologies.com";>APRESENTAÇÕES</sectionName>
                     </ns2:Section>
                     <ns2:Section
xmlns:ns2="http://objects.model.fuxiontechnologies.com";>
                        <assetType
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <description>Relatório</description>
                           <id>-1</id>
                        </assetType>
                        <id
xmlns="http://objects.model.fuxiontechnologies.com";>7</id>
                        <module
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <id>3</id>
                           <moduleName>BIBLIOTECA</moduleName>
                        </module>
                        <sectionName
xmlns="http://objects.model.fuxiontechnologies.com";>RELATÓRIOS</sectionName>
                     </ns2:Section>
                     <ns2:Section
xmlns:ns2="http://objects.model.fuxiontechnologies.com";>
                        <assetType
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <description>Documento
Legislativo</description>
                           <id>-1</id>
                        </assetType>
                        <id
xmlns="http://objects.model.fuxiontechnologies.com";>6</id>
                        <module
xmlns="http://objects.model.fuxiontechnologies.com";>
                           <id>3</id>
                           <moduleName>BIBLIOTECA</moduleName>
                        </module>
                        <sectionName
xmlns="http://objects.model.fuxiontechnologies.com";>LEGISLAÇÃO
MINEIRA</sectionName>
                     </ns2:Section>
                  </ns1:sectionSet>
               </ns1:findAllByModuleResponse>
            </soap:Body>
         </soap:Envelope>

----------------- end code -------------------------

I use that to populate a ComboBox. I am using labelField="sectionName"

I populate the combo box without any problem. My problem is that I
cannot navigate the dataProvider so that I can get the index of an
object I get from the database. What does the above output map to in
Flex? Does it map to an ArrayCollection or to a XMLListCollection?
According to the manual, when using a webservice we have to convert
the result to an ArrayCollection, but that didn't work. I don't know
if it affects or not, but from the Java webservice I am returning a
Set object, as opposed to a List. Does that make a difference?

Thanks in advance and I wish you guys a happy new year!!!!

Fidel.

Reply via email to