Create a namespace object for soap:Body
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
pageTitle="Test">
<mx:Script>
import mx.controls.Alert;
private namespace myNamespace = "http://server.com/";
use namespace myNamespace;
</mx:Script>
<mx:WebService id="WS" wsdl="http://server.com/service?wsdl" fault="Alert.show(event.fault.faultString), 'Error'">
<mx:operation name="GetQuote" resultFormat="e4x">
<mx:request>
<symbol>param</symbol>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:HBox>
<mx:Button label="Get Quote" click="WS.GetQuote.send()" />
<mx:Text text="{WS.GetQuote.lastResult.GetQuoteResult.StockQuote.Price}" />
</mx:HBox>
</mx:Application>
Related examples in the same category