Dale,
Flash remoting needs to be turned on and you need to have a channel setup in
remoting config. Look at the file below and check out the adobe devnet at
http://www.adobe.com/devnet/flex/flex_cf.html
WEB-INF/flex/remoting-confi.xml
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
class="flex.messaging.services.RemotingService"
messageTypes="flex.messaging.messages.RemotingMessage">
<adapters>
<adapter-definition id="cf-object" class="
coldfusion.flash.messaging.ColdFusionAdapter" default="true"/>
<adapter-definition id="java-object" class="
flex.messaging.services.remoting.adapters.JavaAdapter"/>
</adapters>
<default-channels>
<channel ref="my-cfamf"/>
</default-channels>
<destination id="ColdFusion">
<channels>
<channel ref="my-cfamf"/>
</channels>
<properties>
<source>*</source>
<!-- define the resolution rules and access level of the cfc
being invoked -->
<access>
<!-- Use the ColdFusion mappings to find CFCs, by default
only CFC files under your webroot can be found. -->
<use-mappings>false</use-mappings>
<!-- allow "public and remote" or just "remote" methods to
be invoked -->
<method-access-level>remote</method-access-level>
</access>
<property-case>
<!-- cfc property names -->
<force-cfc-lowercase>false</force-cfc-lowercase>
<!-- Query column names -->
<force-query-lowercase>false</force-query-lowercase>
<!-- struct keys -->
<force-struct-lowercase>false</force-struct-lowercase>
</property-case>
</properties>
</destination>
</service>
On Jan 1, 2008 8:57 PM, Dale Fraser <[EMAIL PROTECTED]> wrote:
> I have done this before but can't get it to work this time (first time
> with
> CF8).
>
>
>
> I am using Flex to connect to CFC's via mapping. I have enabled mapping
> use
> in the XML and restarted the server but I get this error.
>
>
>
> [RPC Fault faultString="[MessagingError message='Destination 'ColdFusion'
> either does not exist or the destination has no channels defined (and the
> application does not define any default channels.)']"
> faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to
> 'ColdFusion'"]
>
> at
> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invoke
> ()
>
> [E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.
> as:264]
>
> at
>
> mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/internal::
>
> invoke()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\remoting
> \mxml\Operation.as:204]
>
> at
> mx.rpc.remoting::Operation/send
> ()[E:\dev\flex_3_beta3\sdk\frameworks\project
> s\rpc\src\mx\rpc\remoting\Operation.as:120]
>
> at Function/http://adobe.com/AS3/2006/builtin::apply()
>
> at
> mx.rpc.remoting.mxml::Operation/send
> ()[E:\dev\flex_3_beta3\sdk\frameworks\pr
> ojects\rpc\src\mx\rpc\remoting\mxml\Operation.as:177]
>
> at Function/http://adobe.com/AS3/2006/builtin::apply()
>
> at
>
> mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::
>
> callProperty()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\Ab
> stractService.as:292]
>
> at
> DataGrid1/___DataGrid1_Button1_click()[F:\DataGrid1\src\DataGrid1.mxml:17]
>
>
>
>
>
> It seems to be asking for a Channel, but I want to using a mapping and not
> define channels.
>
>
>
> Regards
>
> Dale Fraser
>
>
>
> http://learncf.com
>
>
>
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295716
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4