One big hassle with SOAP is the namespaces.  Once you get that straight,
you can use normal e4x expressions on it. 

 

Where are you having difficulty?

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 

________________________________

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of m_ollman
Sent: Wednesday, February 18, 2009 12:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] parse SOAP response for values

 

I have been looking around for a few hours - Flex Cookbook has some
info about mapping types. But no real method of getting into the
structure.

I need to grab the value of an attribute - abc570, which will be EOPO
+ 4 other attributes.

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/
<http://schemas.xmlsoap.org/soap/envelope/> " 

xmlns:typ="http://ruleburst.com/ruleserver/9.1/rulebase/types
<http://ruleburst.com/ruleserver/9.1/rulebase/types> ">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<typ:assess-response>
<typ:session-data>
<typ:list-entity entity-type="global">
<typ:entity id="global_1">

<typ:attribute id="abc570" inferencing-type="intermediate" type="text">
<typ:text-val>EOPO</typ:text-val>
</typ:attribute>

** ETC - 4 more vales **

</typ:entity>
</typ:list-entity>
</typ:session-data>
</typ:assess-response>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Handler is 

private function RBcompleteHandler(event:Event) : void
{

var dataXML:XML = XML(event.target.data);
}

any help much appreciated

rgds
martin



Reply via email to