Web Service Bounded Params
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal"> <mx:Script> import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] private var contactData:ArrayCollection; private function resultHandler(event:ResultEvent):void { contactData = event.result as ArrayCollection; } private function searchForContacts():void { myService.getFilteredContacts.send(); } </mx:Script> <mx:WebService id="myService" wsdl="http://localhost:8500/Service.cfc?wsdl" result="resultHandler(event)"> <mx:operation name="getFilteredContacts"> <mx:request> <firstname>{fnameInput.text}</firstname> <lastname>{lnameInput.text}</lastname> </mx:request> </mx:operation> </mx:WebService> <mx:Panel title="Search for Contacts" id="searchPanel"> <mx:Form> <mx:FormItem label="First Name:"> <mx:TextInput id="fnameInput"/> </mx:FormItem> <mx:FormItem label="Last Name:"> <mx:TextInput id="lnameInput"/> </mx:FormItem> </mx:Form> <mx:ControlBar> <mx:Button label="Search" click="searchForContacts()"/> </mx:ControlBar> </mx:Panel> <mx:DataGrid dataProvider="{contactData}"> <mx:columns> <mx:DataGridColumn dataField="firstName" headerText="First Name"/> <mx:DataGridColumn dataField="lastName" headerText="Last Name"/> </mx:columns> </mx:DataGrid> </mx:Application>