# Webservice return value as array

**URL:** <https://forum.kirupa.com/t/webservice-return-value-as-array/329593>\
**Category:** flash\
**Created:** [September 19, 2012, 3:00pm UTC](https://forum.kirupa.com/t/webservice-return-value-as-array/329593 "2012-09-19T15:00:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfabris](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@jfabris](https://forum.kirupa.com/u/jfabris)\
**Post date:** [September 19, 2012, 3:00pm UTC](https://forum.kirupa.com/t/webservice-return-value-as-array/329593/1 "2012-09-19T15:00:04Z")

</div>

I am making a webservice call and the webservice returns an array as TallyList

I am not 100% sure how to get the TallyList in the return call

Is the code below correct?

```
    var serviceOperation:AbstractOperation;

    serviceOperation = myWebService.getOperation("GetUserLike");

    serviceOperation.addEventListener(FaultEvent.FAULT, GetUserLikeError);
    serviceOperation.addEventListener(ResultEvent.RESULT, GetUserLikeResult);

    serviceOperation.send(UserID);

    function GetUserLikeError(evt:FaultEvent)
    {
        DebugTrace("webservice error in GetTotalLikeTally");
    }

    function GetUserLikeResult(evt:ResultEvent)
    {
        DebugTrace("webservice success in GetTotalLikeTally:"+evt.result as String);

        //is this the array returned?
        var rval=evt.result.TallyList;
    }

```

[![](http://www.zoominto.com/zoomapi/zoomicon.gif)](javascript:zoominto\_showflash())

[![](http://www.zoominto.com/zoomapi/zoomicon.gif)](javascript:zoominto\_showflash())
