Hi, hope you guys can help me.

I'm using Flex 3.3 + .NET Web Services.

I get an XML like this one from my web service (simplified):

<ListFundsResponse xmlns='http://mydomainname.com/' 
xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' 
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' 
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
  <ListFundsResult>
    <Fund>
      <id>1</id>
      <Name>Some Name here</Name>
      <Description>Some description here</Description>
    </Fund>
  </ListFundsResult>
</ListFundsResponse>

It's supposed that something like this should trace the "Name" value, right?:

//code in result function for webservice component
var lastXML:XML = XML(event.result)
trace("Name in XML: " + lastXML..Fund[0].Name); //gives me an Error: A term is 
undefined and has no properties.

But, if I manually add the XML in the code, and removes the whole xmlns schema 
my code works... What am I doing wrong here?

TIA

_________________________________
Claudio M. E. Bastos Iorio
http://www.blumersolutions.com


Reply via email to