1 Reply Latest reply on Mar 25, 2008 9:47 AM by mjwyeland

    Binding WebService XML to Array Collection

      I have what I hope is a simple question and have been struggling with this for what feels way too long.

      I am calling a web service (here is the WSDL)
      <?xml version="1.0" encoding="utf-8"?>
      <soap:Envelope xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/">
      <GetCalendarTypesResponse xmlns=" http://tempuri.org/">

      and am trying to plug this into an ArrayCollection.

      Here is the callback method for the event.

      private function calTypesResultHandler(event:ResultEvent):void
      _CalTypes = new ArrayCollection(event.result.GetCalendarTypesResult[0]);


      For some reason the value that I am passing back from the result method on the ResultEvent isn't passing into the ArrayCollection. The array collection has a size of 0 and no data.

      Should this be passed into an XMLList?
      Am I calling the Result incorrectly to pass into the ArrayCollection?

      Any help anyone can provide would be greatly appreciated.