Web Service With Bindings
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:WebService id="myService" wsdl="http://localhost/Service.php?wsdl"/> <mx:Button label="Get String" click="myService.helloWorld()"/> <mx:Label text="{myService.helloWorld.lastResult}"/> <mx:Button label="Get Data" click="myService.getAllContacts()"/> <mx:DataGrid dataProvider="{myService.getAllContacts.lastResult}"> <mx:columns> <mx:DataGridColumn dataField="firstName" headerText="First Name"/> <mx:DataGridColumn dataField="lastName" headerText="Last Name"/> </mx:columns> </mx:DataGrid> </mx:Application>