What is the best way to transfer data in Flex,HTTPService、RemoteObject or WebService

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.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • Reddit
  • Technorati
  • StumbleUpon
  • Twitter
RSS Enjoy this Post? Subscribe to Ntt.cc

RSS Feed   RSS Feed     Email Feed  Email Feed Follow us Follow us
You can leave a response, or trackback from your own site.

7 Responses to “What is the best way to transfer data in Flex,HTTPService、RemoteObject or WebService”

  1. James Ward says:

    RemoteObject! Check out my Census RIA Benchmark:
    http://www.jamesward.org/census/

    -James

  2. vikas gupta says:

    hello sir,

    Can anybody tell me, how we connect the database in Flex.I want complete solution.Please help me.

  3. James Ward says:

    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

  4. Rajiv says:

    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

  5. Ravi.P says:

    can we the datas transfer from data flex to excel or word.if possible, How it is Transferred?

  6. ravi says:

    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?

  7. Deepa says:

    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();
    });

Leave a Reply

Switch to our mobile site