Seems like it could be a deeper error in the cfml, double check all of the CF logs and see if you can find a better error.
Also you might want to try sending the object through the flash remoting adapter, to see if you can get either a better message or to confirm that CF doesn't have a problem translating the object type. Flash Remoting and the Event Gateway share the same data type translation layer.
Also make sure you have the Alias properties in the AS Class and the CFC set correctly and they match exactly.
---nimer
- Original Message From: nigasak [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Friday, July 28, 2006 4:07:00 PMSubject: [flexcoders] passing VOs using ColdFusion Event gateway Adapter
I am using CF Event Gateway Adapter, having a Producer from a flex App that sends messages to the CF Gateway, and a consumer in another Flex App, that is suscribed to the messages generated by the CF Gateway.Hi, I've been trying to do it without success, I have a RequerimientoVO Object with its data already filled, but when I try to do this:var msg : AsyncMessage = new AsyncMessage( );msg.headers. gatewayid = "RequerimientosGate way";//requerimiento is the VO with datamsg.body = requerimientoservice.send( msg );It doesn't works, and I get this error:"Unable to send message to CF Gateway 'RequerimientosGate way': null"however if I change this line:msg.body = requerimiento;for this one:msg.body = new Object();It works, but data arrives to the CFC gateway without type and I have to fill the object myself before sending:msg.body.codigo = requerimiento.
codigo;msg.body.nombre = requerimiento. nombre;When the CFC returns data from the Gateway to a consumer in another Flex app, it arrives untyped too :-(
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development
Computer software development
Software design and development
Macromedia flex
Software development best practice
YAHOO! GROUPS LINKS
Visit your group "flexcoders" on the web.
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___