# Trouble with web service that returns an array of arrays

**URL:** https://forum.kirupa.com/t/trouble-with-web-service-that-returns-an-array-of-arrays/263534
**Category:** Uncategorized
**Created:** [June 16, 2008, 11:00pm UTC](https://forum.kirupa.com/t/trouble-with-web-service-that-returns-an-array-of-arrays/263534 "2008-06-16T23:00:08Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![SquirtGun](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@SquirtGun](https://forum.kirupa.com/u/SquirtGun)
#### Post date: [June 16, 2008, 11:00pm UTC](https://forum.kirupa.com/t/trouble-with-web-service-that-returns-an-array-of-arrays/263534/1 "2008-06-16T23:00:08Z")

</div>

Hello,

I have a project thats dealing with making SOAP calls to various web services. One in particular returns an array of arrays for the logged in user. When I do a trace() on the return, it traces out as [object Object]. So I assume that this is the Main Array. Everything I do to try and access the contents traces out as undefined. Hope this makes sense. I am unable to post the exact code due to my clients security concerns.

Thanks for any help you can offer.

~squirt

---

<div class="post-metadata">

### Author: ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)
#### Post date: [June 16, 2008, 11:16pm UTC](https://forum.kirupa.com/t/trouble-with-web-service-that-returns-an-array-of-arrays/263534/2 "2008-06-16T23:16:34Z")

</div>

what about trace(array[0][0]); or something like that?

---

<div class="post-metadata">

### Author: ![SquirtGun](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@SquirtGun](https://forum.kirupa.com/u/SquirtGun)
#### Post date: [June 16, 2008, 11:19pm UTC](https://forum.kirupa.com/t/trouble-with-web-service-that-returns-an-array-of-arrays/263534/3 "2008-06-16T23:19:00Z")

</div>

> [@mrwicked;2343953](#):
>
> what about trace(array[0][0]); or something like that?

yeah that came up as undefined as well.

---

<div class="post-metadata">

### Author: ![SquirtGun](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@SquirtGun](https://forum.kirupa.com/u/SquirtGun)
#### Post date: [June 16, 2008, 11:22pm UTC](https://forum.kirupa.com/t/trouble-with-web-service-that-returns-an-array-of-arrays/263534/4 "2008-06-16T23:22:44Z")

</div>

not sure if it matters, but I forgot to mention its a php web service.

---

<div class="post-metadata">

### Author: ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)
#### Post date: [June 16, 2008, 11:24pm UTC](https://forum.kirupa.com/t/trouble-with-web-service-that-returns-an-array-of-arrays/263534/5 "2008-06-16T23:24:56Z")

</div>

Is their a way I can see this returned array? like a link to the file? Maybe it an array with objects like array.object1, array.object2, array.variable1 etc…

---

<div class="post-metadata">

### Author: ![SquirtGun](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@SquirtGun](https://forum.kirupa.com/u/SquirtGun)
#### Post date: [June 16, 2008, 11:35pm UTC](https://forum.kirupa.com/t/trouble-with-web-service-that-returns-an-array-of-arrays/263534/6 "2008-06-16T23:35:08Z")

</div>

Array  
(  
[SessionID] =\> di835e5frcghngh3lsrkrma246  
[UnitList] =\> Array  
(  
[0] =\> Array  
(  
[MobileUnitIndex] =\> b4  
[unitvalid] =\> b5  
[unitname] =\> b4a4a4a4a4a8a4f4e8e5f0e1f7bea4  
[level] =\> b2  
[statuscolor] =\> a7c0c5c5b1b6b4  
[status] =\> c8cbd7  
[percentcolor] =\> a7b4b4c2c2b4b4  
[percent] =\> b6a4a1  
)

```
        [1] =&gt; Array
            (
                [MobileUnitIndex] =&gt; b5
                [unitvalid] =&gt; b5
                [unitname] =&gt; a4c0f1e9e9fda4cfebf6e1a4d1eaedf0
                [level] =&gt; b2
                [statuscolor] =&gt; a7c0c5c5b1b6b4
                [status] =&gt; c8cbd7
                [percentcolor] =&gt; a7b4b4c2c2b4b4
                [percent] =&gt; b5a4a1
            )

```

)

The amount of arrays changes based on the user. So this example returns two. The sessionID is tracing out fine.

---

<div class="post-metadata">

### Author: ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)
#### Post date: [June 16, 2008, 11:48pm UTC](https://forum.kirupa.com/t/trouble-with-web-service-that-returns-an-array-of-arrays/263534/7 "2008-06-16T23:48:57Z")

</div>

try:  
trace(array[1][0][0].MobileUnitIndex); and see if that traces out that variable

and trace(array[1][1][0].MobileUnitIndex);

will trace the bottom array I believe.

---

<div class="post-metadata">

### Author: ![SquirtGun](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@SquirtGun](https://forum.kirupa.com/u/SquirtGun)
#### Post date: [June 17, 2008, 12:21am UTC](https://forum.kirupa.com/t/trouble-with-web-service-that-returns-an-array-of-arrays/263534/8 "2008-06-17T00:21:59Z")

</div>

Bummer. Still a no go.

I was thinking of starting to look into the SOAPCall Class.  
[http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs\_Parts&file=00003698.html](http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003698.html)

Wondering if the SOAPCall.doLazyDecoding has anything to do with it. Says it handles “Turning on/off the delay of converting SOAP arrays into ActionScript objects”
