I have what may be a useful solution to this challenge: http compression. Yours is a rather old dilemma that goes back to the days of building Flash apps "the old way"...images of coal and steam come to mind, but I digress :-). The frequent claim was that one should favor remoting over XML/web services because it was less verbose and therefore faster, as you're indeed experiencing. But as was pointed out then, consider that you could ask the web server to compress the XML (using standard GZip compression). That might eliminate the difference in the size of the packet. Now, I don't know if the HTTPService in Flex can support unzipping Gzipped data, but I'd suspect it could. I'll leave it for others to test. Hope it may prove a helpful observation. PS As then, this doesn't mean there there aren't advantages of remoting over XML, but as Darren explains, remoting isn't working for him, so this could be useful in such cases. /Charlie http://www.carehart.org/blog/
_____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darrell Ross Sent: Tuesday, January 30, 2007 6:21 PM To: [email protected] Subject: RE: [AFFUG Discuss] XML vs. Query via Remote Object from CF We're using HTTPService calls to bring back XML in lieu of RemoteObject calls. We're seeing a time lag of around 20% in using HTTP instead of Remoting. This seems consistent with an article someone on my team spotted recently (forgot the URL). Our environments may be different from others on this list. We are integrating Flex with J2EE (Spring/Hibernate/ACEGI). We found that Remoting with Data Services does not permit us to utilize our ACEGI security layer. In talking with Adobe, this seems to be a bug. HTTPService calls are the only viable way to currently incorporate a back-end security framework with Flex as your presentation tier. An additional overhead step is that you have to filter your XML through a hidden JSP before it is displayed in your UI. Oh yeah...and then there is the $20K per processor if you want to use Remoting with Flex (it requires you to buy Data Services). Darrell Ross ------------------------------------------------------------- To unsubscribe from this list, simply email the list with unsubscribe in the subject line For more info, see http://www.affug.com Archive @ http://www.mail-archive.com/discussion%40affug.com/ List hosted by http://www.fusionlink.com -------------------------------------------------------------
<<attachment: image002.jpg>>
