# Webservice -- How to show the result

**URL:** https://forum.kirupa.com/t/webservice-how-to-show-the-result/253797
**Category:** flash
**Created:** [March 5, 2008, 8:22am UTC](https://forum.kirupa.com/t/webservice-how-to-show-the-result/253797 "2008-03-05T08:22:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ivanovi](https://avatars.discourse-cdn.com/v4/letter/i/4491bb/32.png) [@ivanovi](https://forum.kirupa.com/u/ivanovi)
#### Post date: [March 5, 2008, 8:22am UTC](https://forum.kirupa.com/t/webservice-how-to-show-the-result/253797/1 "2008-03-05T08:22:37Z")

</div>

Hi,

I need a way to see the response in xml format so that I can manipulate the results. Below is the code I tried out,

import mx.services.WebService;  
import mx.services.SOAPCall;

var ccWS:WebService = new WebService("[[COLOR=#810081]http://www.flash-mx.com/mm/tips/tips.cfc?wsdl[/COLOR]](http://www.flash-mx.com/mm/tips/tips.cfc?wsdl)");

var soap:SOAPCall = ccWS.getTipByProduct();

soap.doDecoding = true;  
soap.doLazyDecoding = true;  
soap = ccWS.getTipByProduct(“Flash”);

soap.onResult = function(result){  
trace("result: " + result);  
trace("result: " + result.length);  
}

I was hoping to print all the xml tags and element at onResult function, can anyone tells me how can I do that?

Thanks in advance.

ivanovi
