Muzak,

Thank you!  I was having serious problems finding any reference to
Flex 2, AMF0, and ColdFusion.  So your response is extremely appreciated!

I also received the following information from Peter Farland so I
thought I'd share his response:


===========
I know what the problem is - the issue is that the CF 6.1 gateway
doesn't return implementations of mx.messaging.messages.IMessage.

There are several ways to solve this. Other customers have taken one
route by writing their own RemoteObject implementation (see Renaun's
blog).

However, if I were to solve this myself I'd write a custom
implementation of mx.messaging.channels.Channel that would allow me use
NetConnection, set the encoding back to AMF0, but finally and most
importantly fake messaging (just like the DirectHTTPChannel does for
useProxy="false" for WebService and HTTPService) by wrapping and
unwrapping requests and responses to make them appear as if they came
over messaging.

Pete 
===================





--- In [email protected], "Muzak" <[EMAIL PROTECTED]> wrote:
>
> You can't use the default RemoteObject tag with AMF0. You'll need to
use a custom RemoteObject implementation.
> Here's one:
> http://renaun.com/blog/2007/03/12/197/
> 
> regards,
> Muzak
> 
> ----- Original Message ----- 
> From: "borkyborkbork" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Tuesday, April 03, 2007 3:31 AM
> Subject: [flexcoders] ColdFusion 6.1 Flash Gateway and Flex 2
> 
> 
> Anyone,
> 
> I've got a set of ColdFusion 6.1 CFC's that are currently being
> consumed via the flash gateway (/flashServices/gateway) with Flash MX.
> 
> We are trying to consume the CFC's via the same gateway but with Flex
> 2 instead of Flash MX.  We've changed the encoding to AMF0.
> 
> When we do this we are running into an issue where we are getting the
> following error on the client:
> TypeError: Error #1034: Type Coercion failed: cannot convert
> [EMAIL PROTECTED] to mx.messaging.messages.ErrorMessage"
> 
> And the following error in the server "flash.log" file:
> "You are not allowed to access the service null. The service is not in
> the configured whitelist."
> 
> 
> I have not found any references to people successfully connecting to
> CF6.1 FlexGateway without using webservices... so really wondering if
> this is even possible.
> 
> Any ideas?  Code follows.
> 
> TIA
> 
> Tom Kirstein
>


Reply via email to