From: nigasak <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, July 28, 2006 4:07:00 PM
Subject: [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 data
msg.body = requerimiento
service.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
| 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.
__,_._,___

