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 web service instead.
I used that guys web service code, adulanto, and wrote my 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/” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“http://www.w3.org/2001/XMLSchema”>
<soap:Body>
<FixedProceraImplantRetainedBridgeResponse xmlns=“http://www.hld-dentalimplantcenter.com/”>
<FixedProceraImplantRetainedBridgeResult>
<Yes>18</Yes>
<No>0</No>
</FixedProceraImplantRetainedBridgeResult>
</FixedProceraImplantRetainedBridgeResponse>
</soap:Body>
</soap:Envelope>
YesCount=0
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";
}