# \[Flash 8/AS 2.0\] Web Service Connector Results Issues

**URL:** <https://forum.kirupa.com/t/flash-8-as-2-0-web-service-connector-results-issues/193627>\
**Category:** flash\
**Created:** [July 14, 2006, 4:57pm UTC](https://forum.kirupa.com/t/flash-8-as-2-0-web-service-connector-results-issues/193627 "2006-07-14T16:57:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noahhoward](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@noahhoward](https://forum.kirupa.com/u/noahhoward)\
**Post date:** [July 14, 2006, 4:57pm UTC](https://forum.kirupa.com/t/flash-8-as-2-0-web-service-connector-results-issues/193627/1 "2006-07-14T16:57:39Z")

</div>

Hello, I am currently trying to develop an application in Flash.

Currently I am working on trying to contact a webservice to get a list of course  
names. I am getting the results but I cannot even parse them.

In the schema for my Web Services Connector, it prepopulates to say that it expects the results to be ArrayOfAnyType.

So I have this code in my on( result) call:

```auto

var x:Array = this.results; 
var y:XML = x[0];
trace(y);

```

The trace ouputs (whitespace added for readability):

```auto

<anyType xsi:type="ArrayOfAnyType">
     <anyType xsi:type="xsd:string">DOS</anyType>
     <anyType xsi:type="xsd:string">Danger Of Socks</anyType>
     <anyType xsi:type="xsd:string">socks, and why they are dangerous</anyType>
</anyType>

```

Now, when I try to go through that XML object and print values using this script:

```auto

var children:Array = y.childNodes;
    for(i = 0; i < children.length; ++i)
    {
        
        trace(" Value= " + children*.nodeValue);
    }

```

The trace responds:

```auto

Value= null
Value= null
Value= null

```

From what I have gathered in the help menu, Flash has two types of XML nodes, a node, and a textNode. nodeValue will always be nukll for a node but on a text node it will return what you would expect and I don’t know that I can convert between the two or force it one way or another. I don’t have a clue why it is like that but apparently that is how it works.

What can i do to get this data in?

Is there some way to get it to parse as an array? As far as we can tell, it should be going from the webservice as an Array, SOAP should convert to XML and then Flash should decode back to an array… it doesn’t seem to be working that way though.

If anyone can help, I would appreciate it and you can contact me at JasonWilsonTEM(AIM), [jwils403@student.maconstate.edu](mailto:jwils403@student.maconstate.edu)(MSN) or blackknightnrm(Yahoo).

Also for more information, I am using Flash 8 Professional with AS 2.0. Using speciffically the web services component.

Thank you.
