I have created a http service and i'm trying to post the http request. the result is Successful but i'm not able to display the result in the alert window.
This is what I'm trying to do on the result event handler function.
protected function postRequestResult_resultHandler(event:ResultEvent):void
var srt:String = event.result.nodeValue;
Alert.show(srt , "Result");
but I'm getting an output something like [object object ]
Please help. All I need is to do is, display the complete soap envelop ( soap header and body ) present in the result.
Is there a way to do it ?
Thanks and regards,
The event.result of a ResultEvent is an object and I'm assuming "nodeValue" is too. So you might want to try
event.result.nodeValue.toString() or something of the sort.
this probably means:
- there are multiple nodes at that level ( in this case, take this as arraycollection )
- the node contains child nodes ( in this case take this as object )
Thanks for all your replies. I was able to solve it by making the resultFormat property of http service object as text, This returned the entire result as a string. And i was able to display it.