Mega Code Archive

 
Categories / Flex / Data Model
 

Call Asp net web service and pass parameters

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">   <mx:WebService id="dataService" wsdl="Service.asmx?wsdl" showBusyCursor="true"/>   <mx:VBox width="800" borderStyle="solid">     <mx:Label text="Sending Arguments" fontSize="14"/>     <mx:HBox>       <mx:Label text="Value 1:"/><mx:TextInput id="val1Input"/>     </mx:HBox>     <mx:HBox>       <mx:Label text="Value 2:"/><mx:TextInput id="val2Input"/>       <mx:Button label="Send Arguments" click="dataService.handleArgs(val1Input.text, val2Input.text)"/>     </mx:HBox>     <mx:Label fontSize="12" text="{dataService.handleArgs.lastResult}"/>   </mx:VBox> </mx:Application>