There are two "remoting" technologies available in ColdFusion. 
 
There is Macromedia Flash Remoting which was also included in ColdFusion
MX. This is retained today in CF for backwards compatibility for older
Flash Remoting clients and Flex 1.0 and Flex 1.5 applications, although
Flex 2 does not target this technology. In CF, the old Flash Remoting
gateway is typically configured on the CF server at
/flashservices/gateway.
 
Adobe Flex Data Services 2 includes a Remoting Service that is also
available in ColdFusion 7. Flex 2's RemoteObject is designed to talk to
this new service and includes support for new data types made available
in ActionScript 3.0. Flex Data Services is built on top of a messaging
framework so it sends messages back and forth between the client and
server. The remoting service is provided by a message broker and is
typically configured on the CF server at /flex2gateway. I imagine that
you've contacted a legacy endpoint such as the old Flash Remoting
gateway and did not receive a message (but perhaps a raw result)...
hence the failure.
 
Pete
 
 
 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of rchadgray
Sent: Wednesday, March 21, 2007 4:34 PM
To: [email protected]
Subject: [flexcoders] Re: flash remoting



I think i understand.

I did this:
<mx:RemoteObject id="cfc_ro" destination="ColdFusion" 
source="remotingExample" showBusyCursor="true" 
endpoint="http://demo.dev/flashservices/gateway
<http://demo.dev/flashservices/gateway> "> 

but i get an error.
TypeError: Error #1034: Type Coercion failed: cannot convert 
[EMAIL PROTECTED] to mx.messaging.messages.ErrorMessage.

Looks like the fault attribute is kicking in and it cannot convert 
the error to text.

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Clint Tredway" <[EMAIL PROTECTED]> 
wrote:
>
> Ya, you would need to use the endpoint, not the source to point it 
to
> another url.
> 
> On 21 Mar 2007 13:20:04 -0700, Peter Farland <[EMAIL PROTECTED]> wrote:
> >
> > Hmm, really? I don't think that is correct.
> >
> > The source attribute is only used by the gateway to locate a CFC 
using a
> > logical mapping to directories/cfcs based on the package.leafname.
> >
> > Are you mistaking this with the endpoint attribute which 
specifies the
> > location of the gateway?
> >
> > Pete
> >
> > ------------------------------
> > *From:* [email protected]
<mailto:flexcoders%40yahoogroups.com>  
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] *On
> > Behalf Of *rchadgray
> > *Sent:* Wednesday, March 21, 2007 3:39 PM
> > *To:* [email protected]
<mailto:flexcoders%40yahoogroups.com> 
> > *Subject:* [flexcoders] Re: flash remoting
> >
> > I have it figured out now. I found an article by Mike Chambers on
> > flash remoting that explained things more.
> >
> > http://www.adobe.com/devnet/coldfusion/articles/startremoting.html
<http://www.adobe.com/devnet/coldfusion/articles/startremoting.html> 
> >
> > I got it working now. I had the cfc in the root of the site so i 
had
> > to chance the source on the RemoteObject tag to:
> >
> > source="remotingExample"
> >
> > Now if this were an apollo app would and the app was running over 
on
> > another computer somewhere. Would i just need to change source to:
> >
> > source="http://demo.dev/remotingExample
<http://demo.dev/remotingExample> "
> >
> > Thanks again Clint! I am learning slowly!
> >
> > 
> >
> 
> 
> 
> -- 
> http://indeegrumpee.spaces.live.com/
<http://indeegrumpee.spaces.live.com/> 
>



 

Reply via email to