Dave, Awesome, thanks for these! I completely
forgot to check Ben’s blog. These are invaluable. 10 Points to Dave! Thanks, Ted ;) From: from: http://forta.com/blog/index.cfm?mode=c&catid=11
There are two basic ways for Flex to invoke back-end
ColdFusion CFCs, SOAP (Web Services) or AMF (Flash Remoting). My app had been
using SOAP, but I needed to convert to AMF (the performance difference is
significant). Last year Brandon Purcell wrote an excellent blog entry
entitled Switching between webservices and Flash Remoting using Flex , and
so I used his steps to make the switch. As he notes in that entry, ColdFusion
variables returned via SOAP have their names converted to uppercase, whereas
variables returned via AMF retain their original case, and so any binding code
(or Flex code referencing returned data) needs to be converted from all caps to
actual case. The converted code worked perfectly for CFC methods
returning queries, they ran exactly as they did before, just a whole lot
quicker. But my CFC methods returning structures all failed, none of my
bindings and client-side code worked. The problem? Waldo Smeets figured
this one out, unlike returned queries, returned structure members are all caps,
even when using AMF. This is horribly inconsistent, and hopefully it'll be
fixed in the future. For now, keep this in mind. Yahoo! Groups Links
|
- RE: [flexcoders] Web Services and CF7 Theodore E Patrick
- RE: [flexcoders] Web Services and CF7 Theodore E Patrick
- RE: [flexcoders] Web Services and CF7 Peter Farland
- Re: [flexcoders] Web Services and CF7 Dave Carabetta
- Re: [flexcoders] Web Services and CF7 Thijs Triemstra | Collab
- Re: [flexcoders] Web Services and CF... Dave Carabetta
- RE: [flexcoders] Web Services and CF7 Peter Farland
- Re: [flexcoders] Web Services and CF7 Andrew Muller