>- see footer for list info -< In fact I just ran the code again in a cfm test :
<cfinvoke webservice="http://cfmx.development.com/webservices/getEmployees.cfc?wsdl" returnvariable="foo" method="rsEmployees" > <!--- <cfinvoke component="getEmployees" method="rsEmployees" returnvariable="foo"> ---> <cfdump var="#foo#"> And it produced the following (sorry about the formatting).. FIRSTNAME LASTNAME TITLE 1 Nancy Davolio Sales Representative 2 Andrew Fuller Vice President, Sales 3 Janet Leverling Sales Representative 4 Margaret Peacock Sales Representative 5 Steven Buchanan Sales Manager 6 Michael Suyama Sales Representative 7 Robert King Sales Representative 8 Laura Callahan Inside Sales Coordinator 9 Anne Dodsworth Sales Representative -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lynch Sent: 13 December 2004 15:33 To: 'Coldfusion Development' Subject: RE: [CF-Dev] Flex Binding Issue / CFC Webservice >- see footer for list info -< Yup, sorry. I was having a stab in the dark. Does the resultset have columns FirstName, LastName and Title? Ade -----Original Message----- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: 13 December 2004 14:57 To: Coldfusion Development Subject: RE: [CF-Dev] Flex Binding Issue / CFC Webservice >- see footer for list info -< Any examples....I normally use XML here..the whole Flex/CFC route is not the one I have looked at yet -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lynch Sent: 13 December 2004 14:43 To: 'Coldfusion Development' Subject: RE: [CF-Dev] Flex Binding Issue / CFC Webservice >- see footer for list info -< You might need to bind each column to a column in the query. Ade -----Original Message----- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: 13 December 2004 14:27 To: Coldfusion Development Subject: [CF-Dev] Flex Binding Issue / CFC Webservice >- see footer for list info -< OK Lucas, you seem to be the man to ask then... I have a Flex Server and a ColdFusion Server which are on my local drive and referenced as flex.develop,ent.com and cfmx.development.com. I have a CFC on the CF server which I can access via the following code: <mx:WebService wsdl="http://cfmx.development.com/webservices/getEmployees.cfc?wsdl" id="employeeModel" showBusyCursor="true" protocol="http"> <mx:operation name="rsEmployees"/> </mx:WebService> This is just a call to get back a standard CF Query Object. The CFC is AOK as I can invoke it via CF not problemo, but the following MXML app produces nada... any ideas? I would assume the binding is all wrong here but from other examples I can't see anything off hand (and I also trying to do this while doing real work - this is just a POC at present). <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:WebService wsdl="http://cfmx.development.com/webservices/getEmployees.cfc?wsdl" id="employeeModel" showBusyCursor="true" protocol="http"> <mx:operation name="rsEmployees"/> </mx:WebService> <mx:DataGrid id="dg" width="100%" height="100%" dataProvider="{employeeModel.rsEmployees.result}"> <mx:columns> <mx:Array> <mx:DataGridColumn columnName="FirstName" headerText="First Name"/> <mx:DataGridColumn columnName="LastName" headerText="Last Name"/> <mx:DataGridColumn columnName="Title" headerText="Title"/> </mx:Array> </mx:columns> </mx:DataGrid> </mx:Application> _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help >-< This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help >-< _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -< This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
