|
Friday 23. of January 2009
Tags: By: By: Sadaf Azad
Posted in Flex Flex is a dynamic, open source framework that is being used extensively by developers to build, maintain and deploy web applications on various platforms including browsers, desktops and operating systems. One major aspect of Flex is that it can be integrated with a number of languages including ColdFusion, Java, .Net and PHP to develop simple and complex web applications. While using other applications at the backend, it becomes more convenient with Flex to provide complex functionalities of web applications and database interactions. Also, Flex based web applications are dynamic and their interfaces are highly interactive. A number of complex Rich Internet Applications are being developed using Oracle at the backend to serve as a database and Flex at the front-end. Most developers are using Oracle EPG (Oracle 10g) at the backend because it lets them have the data, security, business logic and application files in one centralized place, which reduces the complexities of maintenance. There are many other advantages of using Oracle with Flex to develop web applications. These are:
It becomes easy with Oracle EPG to have the functionality of an efficient XML carrier along with having the database at the server side. To call the procedure for Flex via the URL and get the results in HTTP, you are required to look for the port that listens to XMLDB. You can even set the port according to your requirement. The following chunk of code will be required to establish the connection with the database for Flex integration.
You will also be required to authorize the DAD to connect using a specific database user. Despite the fact that we provide a username - “DAD” – the default physically connects to anonymous.
As far as data handling in Flex is concerned, Flex does not communicate with the database directly. However, it can consume data from a web service like XML and display it. Flex uses the functions of HTTPService Class for data handling and storing in XML format, as well as communicating with the database web service. You can take advantage of the functions of HTTPService Class for handling the data after using XML services of Oracle. HTTPService Class When using HTTPService, the client makes an HTTPService request to the server. The server serializes the data into a XML string and returns that XML string to the client. The HTTPService then de-serializes the data from XML to objects. The client updates the data grid with new objects. Many functions of HTTPService Class are important for correct handling of data either from a URL or from the database. These are: Send() -- To retrieve data from a URL and store it in the memory, the send() method of HTTPService object should be used. The send() method makes an HTTP request to the specified URL and an HTTP response is returned. resultFormat-- HTTPService also adds the capability of handling XML data in different formats including “E4X” by setting the resultFormat attribute. To work with the loaded data as XML, it is required to set the resultFormat of the HTTPService object to “E4X”. This way the data retrieved from the URL will be stored as XML string and results could be accessed easily in XML format using the ECMAScript. resultHandler() – The function is an event handler that is called when the call returns successfully. To see a practical demonstration of Flex and Oracle EPG integration, I would recommend reading Mauricio Pacheco’s article, Flex Developer Center where he has very keenly described the connectivity of Flex with Oracle database using XML services.
References: Mauricio Pacheco, “Using Oracle EPG to provide XML services for Flex applications,” retrieved Jan 23, 2009 from http://www.adobe.com/devnet/flex/articles/flex_epg.html Tim, “DBMS_EPG - The Embedded PL/SQL Gateway in Oracle 10g Database Release 2,” retrieved Jan 23, 2009 from http://www.oracle-base.com/articles/10g/dbms_epg_10gR2.php “Loading External Data with HTTPService,” retrieved Jan 23, 2009 from http://www.adobe.com/devnet/flex/quickstart/httpservice/ Comments
Displaying results 1 to 5 out of 371
..
Tramadol.
Buy vicodin. Vicodin. Vicodin addiction.
Cialis.
Buy meridia. Meridia. Meridia venezuela. Meridia diet pill. Meridia and wellbutrin.
Sorry, comments are closed for this post.
|
|
|


RSS