5 Replies Latest reply on Nov 26, 2009 4:40 AM by paul.williams

    Flex 3 and E4X

    nintendofanboy8
      I am consuming an amazon webservice in flex 3 and returning the data as e4x

      When I use the statement <i>myList:XMLList = event.result..Item; </i> it returns nothing but all documentation I have is on flex2 and I'm following it correctly. I just want to extract the Item nodes, even when I use the dot syntax it won't pull it out, I have never had any probs with flex2 using e4x but I upgraded yesterday and I'm not sure if there are known problems or it's changed.


      I can trace out the event.result as xml string and this is the output.....

      <ItemSearchResponse xmlns=" http://webservices.amazon.com/AWSECommerceService/2007-07-16" xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=" http://www.w3.org/2001/XMLSchema">
      <OperationRequest>
      <HTTPHeaders>
      <Header Name="UserAgent" Value="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)"/>
      </HTTPHeaders>
      <RequestId>08EQDKM54A8V7GEB1NJ6</RequestId>
      <Arguments>
      <Argument Name="Service" Value="AWSECommerceService"/>
      </Arguments>
      <RequestProcessingTime>0.129209041595459</RequestProcessingTime>
      </OperationRequest>
      <Items>
      <Request>
      <IsValid>True</IsValid>
      </Request>
      <TotalResults>428</TotalResults>
      <TotalPages>22</TotalPages>
      <Item>
      <ASIN>B000EULJLU</ASIN>
      <DetailPageURL> http://www.amazon.co.uk/gp/redirect.html%3FASIN=B000EULJLU%26tag=ws%26lcode=sp1%26cID=2025 %26ccmID=165953%26location=/o/ASIN/B000EULJLU%253FSubscriptionId=1NY6G9SZ24TC3D2G2CR2</Det ailPageURL>
      <ItemAttributes>
      <Artist>Tool</Artist>
      <Manufacturer>Volcano</Manufacturer>
      <ProductGroup>Music</ProductGroup>
      <Title>10,000 Days</Title>
      </ItemAttributes>
      </Item>
      <Item>
      <ASIN>B00009YNGE</ASIN>
      <DetailPageURL> http://www.amazon.co.uk/gp/redirect.html%3FASIN=B00009YNGE%26tag=ws%26lcode=sp1%26cID=2025 %26ccmID=165953%26location=/o/ASIN/B00009YNGE%253FSubscriptionId=1NY6G9SZ24TC3D2G2CR2</Det ailPageURL>
      <ItemAttributes>
      <Artist>Tool</Artist>
      <Manufacturer>Bmg</Manufacturer>
      <ProductGroup>Music</ProductGroup>
      <Title>Lateralus</Title>
      </ItemAttributes>
      </Item>
      <Item>
      <ASIN>B000Y1ZXU2</ASIN>
      <DetailPageURL> http://www.amazon.co.uk/gp/redirect.html%3FASIN=B000Y1ZXU2%26tag=ws%26lcode=sp1%26cID=2025 %26ccmID=165953%26location=/o/ASIN/B000Y1ZXU2%253FSubscriptionId=1NY6G9SZ24TC3D2G2CR2</Det ailPageURL>
      <ItemAttributes>
      <Artist>Tool</Artist>
      <Manufacturer>Bmg</Manufacturer>
      <ProductGroup>Music</ProductGroup>
      <Title>Vicarious [DVD]</Title>
      </ItemAttributes>
      </Item>
      <Item>
      </Items>
      </ItemSearchResponse>