Flex/ColdFusion case sensitivity gotcha
Yesterday I was helping a ColdFusion user who is just getting into Flex. He kept getting this error:
[RPC Fault faultString="[MessagingError message='Unknown destination
'Coldfusion'.']" faultCode="InvokeFailed" faultDetail="Couldn't establish a
connection to 'Coldfusion'"]
This was his first attempt trying to hook Flex 2 into ColdFusion and he wasn't getting anywhere. His code looked ok to me:
<mx:RemoteObject id="cfService" destination="Coldfusion"
source="flexbtb.cfc.myService" />
But then I noticed something. He had "Coldfusion", not "ColdFusion". Turns out the destination value is case sensitive. Just one more example of something us ColdFusion developers have probably gotten a bit lazy with - case sensitivity.
Comments
http://www.brucephillips.name/blog/index.cfm/2007/...
-context-root "" -services "/Applications/ColdFusion8/wwwroot/WEB-INF/flex/services-config.xml" -locale en_US
before the project would work.
Kai
I'm creating a project using FDS that compiles on the server when the page is loaded. I'm getting the above error, however I'm using ColdFusion spelled in this case for the destination. When I try to view my compiler path, it says that "Since this project is compiled by the server, these settings do not apply."
So what can I do to get my remoteObject to connect to the ColdFusion destination?


http://www.kylehayes.info/blog/index.cfm/2007/5/14...