Flex Data Communications Nick Kwiatkowski, Michigan State University.

Slides:



Advertisements
Similar presentations
Web Services & EAI.
Advertisements

Designer’s Challenge – Web-based Applications using Adobe Flex and OpenInsight Clay Borne President CLB IT.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
Introduction to Web Interface Technology (CSE2030)
Dynamic Web Pages Bert Wachsmuth. Review  Internet, IP addresses, ports, client-server, http, smtp  HTML, XHTML, XML  Style Sheets, external, internal,
(NHA) The Laboratory of Computer Communication and Networking Network Host Analyzer.
Website Development with PHP and MySQL Introduction.
/ department of mathematics and computer sciencedepartment of mathematics and computer science / architecture of information systems.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
SQL Reporting Services Overview SSRS includes all the development and management pieces necessary to publish end user reports in  HTML  PDF 
Java web development Servlet & Java server pages.
Java Server Programming Jeff Schmitt Towson University October 15, 1998.
DAT304 Leveraging XML and HTTP with Sql Server Irwin Dolobowsky Program Manager Webdata Group.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Chapter 9 Web Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
INTRODUCTION TO WEB DATABASE PROGRAMMING
9-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
JavaScript & jQuery the missing manual Chapter 11
RIA & Adobe Flex Yunhui Fu 11/05/2008. What’s RIA RIA (Rich Internet Applications) –web applications which look and perform like desktop applications.
ColdFusion MX Server Administration J2EE Deployment and Clustering Adam Wayne Lehman J2EE Deployment and Clustering Adam Wayne.
TACCIMO A CASE STUDY OF MIGRATING TO THE ARCGIS SERVER API FOR FLEX ESRI SERUG Jennifer Moore Myers, Rob Herring,
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
Flash Remoting Chafic Kazoun Senior Flash Developer - B-Line Express Work: Play:
Chapter 1: Introduction to Web
Exploring Real-time apps with ColdFusion and Blaze DS / Live Cycle Data Services ES Dan Blackman
Server-side Scripting Powering the webs favourite services.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
Prepared by Stephen Olaño June 12, Rich Internet Applications It allow to build rich applications with data and multimedia contents, offering a.
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
Introduction to LiveCycle Data Services Nick Kwiatkowski Michigan State University.
Data File Access API : Under the Hood Simon Horwith CTO Etrilogy Ltd.
COMP 321 Week 7. Overview HTML and HTTP Basics Dynamic Web Content ServletsMVC Tomcat in Eclipse Demonstration Lab 7-1 Introduction.
DSpace UI Alexey Maslov. DSpace in general A digital library tool useful for storage, maintenance, and retrieval of digital documents Two types of interaction:
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
TACCIMO A CASE STUDY OF MIGRATING TO THE ARCGIS SERVER API FOR FLEX ESRI SERUG Jennifer Moore Myers, Rob Herring,
Tom Castiglia Hershey Technologies
1 Tradedoubler & Mobile Mobile web & app tracking technical overview.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Your First Flex Application Nick Kwiatkowski 1/11/07.
ColdFusion 9 and Flex 4: Application Development Ryan Stewart Platform Evangelist, Adobe Systems
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Programming with Visual Web Developer Chapter 9.
Website Design Lecture 1. Outline Introduction to the module Outline of the Assessment Schedule Lecture Static XHTML, client side and server side Why.
10/13/2015 ©2006 Scott Miller, University of Victoria 1 Content Serving Static vs. Dynamic Content Web Servers Server Flow Control Rev. 2.0.
2006 Adobe Systems Incorporated. All Rights Reserved. Designing & Building Structured Business Reports with ColdFusion MX 7 Adam Lehman ColdFusion Specialist.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
GEMVC. The Setup Folders Views Value Objects (VOs) Custom Events Service CFCs Controller Model Application Main MXML.
Flex Tahirhussain. Confidential | Copyright © Larsen & Toubro Infotech Ltd. 2 Contents 1. What is Flex 2. Why Flex.
WEP Presentation for non-IT Steps and roles in software development 2. Skills developed in 1 st year 3. What can do a student in 1 st internship.
Introduction to Flex 2 by Rich Tretola. About Me Rich Tretola is a senior software developer at Herff Jones, Inc. specializing in Rich Internet Applications.
Back to the Basics - Video Nick Kwiatkowski Michigan Flex Users Group.
ASP.NET Web Services.  A unit of managed code installed under IIS that can be remotely invoked using HTTP.
Theo Rushin, Jr. Senior Web Application Developer World Singles and DoubleBlack Technologies 12/26/
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Debugging In Flex Nick Kwiatkowski. Debugging Overview Debugging your applications helps you as a developer create smooth running applications Not just.
Copyright 2007, Information Builders. Slide 1 iWay Web Services and WebFOCUS Consumption Michael Florkowski Information Builders.
Tomcat Setup BCIS 3680 Enterprise Programming. One-Click Tomcat Setup 2  This semester we’ll try to set up Tomcat with a PowerShell script.  Preparation.
CCA Distributed Framework Interoperability. Goals Assume you have two (or more) framework instances. –Assume it contains a network of component instances.
Remote Api Tutorial How to call WS-PGRADE workflows from remote clients through the http protocol?
Excel Services Displays all or parts of interactive Excel worksheets in the browser –Excel “publish” feature with optional parameters defined in worksheet.
CFUNITED – The premier ColdFusion conference Flex 2.0 and ColdFusion Integration – 101 Nahuel Foronda Laura Arguello.
CF Eclipse Nick Kwiatkowski Michigan State University, Physical Plant 8/8/2006.
June 28 th – July 1 st 2006 Thomas Burleson Principal Architect Understanding Flex 2 Data Services “With ColdFusion, why should.
Chapter 27 WWW and HTTP.
Presentation transcript:

Flex Data Communications Nick Kwiatkowski, Michigan State University

Data Communications Why communicate? –Your Flex applications most likely want to have fresh data from a database or other webservice –You may need to send current data to your end-users –Three-Tiered applications Data -> View -> Controller –Your data tier doesn't have to be local!

Data Communication Basics Flex currently supports three types of data communications with external sources : –XML via HTTP Requests –SOAP Web-Services –AMF / Remote Objects With this combination, you can virtually talk to any back-end server

HTTPService The HTTPService MXML tag allows for the most basic communication level between you and a web server –Mostly used for legacy middleware applications and static XML documents –Any application that can generate proper XML on the fly can talk to your Flex app using this tag

HTTPService How it is used: –Place the HTTPService tag at the application or component level (root level) of your current MXML document.

HTTPService Common Parameters: –id – Used to name the component –url – The full URL to the component –result – The event function that will be fired when the result came back successfully The XML document will be stored in the event.result object –fault – The event function that will be fired when the result did not come back correctly.

Web-Services SOAP or Web-Services can easily be called using the component. Web Services allow you to communicate data back to the web-server, and retrieve typed objects (strings, numbers, arrays, queries) Because it is based on XML, it is very verbose, and often slow for large sets of data.

Web-Services How it is used: –Place the tag at the root level of the document (application or component) that you are working on.

Web-Services Common Parameters: –id – Used to name the object –wsdl – Points to the WSDL (Web Service Descriptor) file. This file is different for each language –showBusyCursor – Changes the current pointer to a rotating clock to let the user know something is happening

Web-Services Passing parameters: –You can pass parameters to web-services by naming operations (methods or functions). –The operation tag allows for result or fault functions

Web-Services Passing Parameters: –You CAN use binding statements within your parameters (to bind to user’s input, for example) –Webservices are Case Sensitive, so make sure that your parameters match case Some application servers, such as ColdFusion don’t care about case-sensitivity Watch out with ColdFusion, because it transforms all cases to Uppercase when transmitting data!

AMF AMF, or Remote Objects are the most efficient way to transmit data between your application server and your Flex Application –Data is transmitted in Binary, so it is fairly compressed –Objects will stay in their native form when transmitted Very easy to use**

AMF So, why NOT use AMF? –Only ColdFusion, ActionScript and Java are supported by Adobe. PHP has an open source solution, however. –Fairly hard to setup your environment Requires files to be copied down from your development / deployment environment Makes a lot of assumptions that can hurt you your first time through.

AMF What your need: –You need to get a copy of services-config.xml from your environment. ColdFusion this is your /WEB-INF/flex/ JRun this is / /WEB-INF/flex/ –If you do not develop your applications locally, you need to modify this file. Copy the ColdFusion destination section and my- cfamf sections to meet your needs.

AMF Services-Config? –This file is compiled into your project and will convert the “destination” portion of your RemoteObject call to the tcp/ip hostname and port numbers –Depending on how this file looks, your application can be very portable, or not portable at all.

AMF How it is used: –Just the same as WebService, but instead of the WSDL parameter, you use the destination and source parameters Destination = Destination from the services- config.xml file Source = If using ColdFusion, this the path to the CFC, in dot notation

Advanced Communication By customizing the services-config.xml file, you can also enable some advanced communication –By using the and tags, you can “produce” content to other applications or Coldfusion Event Gateways. This allows for Many-to-One or Many-To-Many applications with little or no work.

ColdFusion Demo What is it, and how is it used with Flex.

ASP.NET Demo What is it, and how is it used with Flex?

PHP Demo What is it, and how is it used with Flex?

ColdFusion and Flex When using ColdFusion with Flex Builder, there are certain wizards available to the developer which helps make data communications quicker. –These need to be installed manually with Flex Builder; follow the directions in the readme. –You also need to configure the Data Sources within ColdFusion before you can begin.

ColdFusion and Flex Within the Preferences dialog box, go to the RDS configuration to setup your connection with ColdFusion Context Root and User Name are un- used unless you are using the Multi-Server version of ColdFusion

ColdFusion and Flex Open the “RDS Dataview” tab by going to Window -> Show View -> Other -> Coldfusion -> RDS Dataview You will then be shown all the Data Sources available to Coldfusion. You can browse the data, too! Double-Click to launch the query browser.

ColdFusion and Flex Right click on a table to template out CFCs for your Flex apps Demo!

Where to find more info AMF-PHP Project – Adobe DevNet – Adobe LiveDocs – Community Flex Project –

Where to find more info Adobe Flex 2: Training from the source –Jeff Tapper, et al

Questions?