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;
}
[](javascript:zoominto_showflash())
[](javascript:zoominto_showflash())