# Parse web service results

**URL:** <https://forum.kirupa.com/t/parse-web-service-results/287992>\
**Category:** Uncategorized\
**Created:** [May 8, 2009, 11:47pm UTC](https://forum.kirupa.com/t/parse-web-service-results/287992 "2009-05-08T23:47:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkirkerx](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@jkirkerx](https://forum.kirupa.com/u/jkirkerx)\
**Post date:** [May 8, 2009, 11:47pm UTC](https://forum.kirupa.com/t/parse-web-service-results/287992/1 "2009-05-08T23:47:10Z")

</div>

This is the same project I posted earlier, about reading a writing xml in AS3. Since I can’t write a xml file in flash player, I changed the design to a [asp.net](http://asp.net) web service instead.

I used that guys web service code, adulanto, and wrote my [asp.net](http://asp.net) web service control dll, and I’m down to the very last detail now. I get some xml back called serviceResponse, but I have no clue how to access the data in the serviceResponse object. I understand that the response XML is a SOAP response, and I need to parse the data in the envelope.

nWeb Service Result:  
\<soap:Envelope xmlns:soap=“[http://schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)” xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)” xmlns:xsd=“[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)”\>  
\<soap:Body\>  
\<FixedProceraImplantRetainedBridgeResponse xmlns=“[http://www.hld-dentalimplantcenter.com/](http://www.hld-dentalimplantcenter.com/)”\>  
\<FixedProceraImplantRetainedBridgeResult\>  
\<Yes\>18\</Yes\>  
\<No\>0\</No\>  
\</FixedProceraImplantRetainedBridgeResult\>  
\</FixedProceraImplantRetainedBridgeResponse\>  
\</soap:Body\>  
\</soap:Envelope\>  
YesCount=0

```auto
function done(serviceResponse:XML):void{
    trace("nWeb Service Result: ");
    trace(serviceResponse);
    
    var YesCount:int = 0;
    var NoCount:int = 0;
  ** YesCount = serviceResponse.Yes;
    NoCount = serviceResponse.No; **
    
    trace("YesCount=" + YesCount);
    
    gotoAndPlay(65);
    
    var myInfoPanel:MovieClip = new mc_InfoHelpful;
    myInfoPanel.x = 360;
    myInfoPanel.y = 275;
    stage.addChild(myInfoPanel);
    
    myInfoPanel.txt_YES.text = "0";
    myInfoPanel.txt_NO.text = "0";    
    
}

```
