What is the best way to transfer data in Flex,HTTPService、RemoteObject or WebService? The below is only some details about the three but I can’t give your any result.You can leave your viewpoint if you konw.
HTTPService:
Loading external data in Flex is easy if you use the <mx:HTTPService> tag.You use the <mx:HTTPService> tag to make POST and GET requests on external data.The HTTP calls made by using the <mx:HTTPService> tag do not support custom methods (e.g., PROPFIND, and so on, for WebDAV); there is no way to extract response headers, but you can distinguish successful calls from failed ones.
RemoteObject:
Likes HTTPService’s usage,use the <mx:WebService> MXML tag,integrating your Web services can be less tedious using the Flex environment.Flex provides a named service construct that moves some of this declaration to a specific block in the flex-config.xml document.
WebService:
The RemoteObject service allows you to invoke methods remotely in Java or .Net objects deployed in your application server.You can pass objects back and forth between the client and the server.

February 2nd, 2008
Ntt.cc
Posted in
Tags: 
RSS Feed
Email Feed
RemoteObject! Check out my Census RIA Benchmark:
http://www.jamesward.org/census/
-James
hello sir,
Can anybody tell me, how we connect the database in Flex.I want complete solution.Please help me.
Hi Vikas,
Flex can’t connect directly to a database (and you wouldn’t really want it to). It must connect to a server via HTTP using networking / remoting APIs like WebService, HTTPService, and RemoteObject. Then the code behind those services is actually what connects to the database.
-James
Hi,
Can we connect flex and .net using remote objects API without using tools like WebORB.If yes, can somebody please share some link to start with.
Regards
Rajiv
can we the datas transfer from data flex to excel or word.if possible, How it is Transferred?
I have one question in remoteobject service, Flex using remote object service to invoke a method in the server class. and this request and response will happen over HTTP/HTTPs, No my question is can we get this http requst object in our remote object service call?
It is possible to the data to excel.
use the below coding
var str:String = “Service Expiry Info\n\n”;
var dat:Date = new Date();
str = ” Dhanalakshmi Transport “;
str +=”Service Expiry InfoDate: ” + dfFormatwithTime.format(dat) + “”;
console.text = DataGridDataExporterservice.exportCSV (gridname,str);
var fileStream:FileStream = new FileStream();
var file:File;
file = File.desktopDirectory.resolvePath(“Dashboard.xls”);
file.browseForSave(“Save As”);
file.addEventListener(Event.SELECT, function (event:Event):void {
var stream:FileStream = new FileStream();
fileStream.open((event.target as File),FileMode.WRITE);
fileStream.writeUTFBytes(console.text);
fileStream.close();
});