Using Web Services in Flash MX 2004 Pro in 60 Minutes or Less.

Slides:



Advertisements
Similar presentations
웹 서비스 개요.
Advertisements

Web Service Architecture
Siebel Web Services Siebel Web Services March, From
Overview of Web Services
Tuesday, June 10, 2003 Web Services Brief Overview & Security Assertion Coordinator Pattern by Mohammad Abushadi & Riaz Ahmed for Security Group CSE -
General introduction to Web services and an implementation example
RPC Robert Grimm New York University Remote Procedure Calls.
Web Services Darshan R. Kapadia Gregor von Laszewski 1http://grid.rit.edu.
Web Services Nasrullah. Motivation about web service There are number of programms over the internet that need to communicate with other programms over.
Snejina Lazarova Senior QA Engineer, Team Lead CRMTeam Dimo Mitev Senior QA Engineer, Team Lead SystemIntegrationTeam Telerik QA Academy SOAP-based Web.
Web Service Standards Relevant to SOA
Interactive Systems Technical Design Seminar work: Web Services Janne Ojanaho.
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
Step Outside the Box – Part I. Theo Rushin Jr I am an avid snowboarder and skier always looking for the deep powder. When I’m not carving my way through.
Latest techniques and Applications in Interprocess Communication and Coordination Xiaoou Zhang.
Understand Web Services
Technical Architectures
J2ME Web Services Specification.  With the promise to ease interoperability and allow for large scale software collaboration over the Internet by offering.
A New Computing Paradigm. Overview of Web Services Over 66 percent of respondents to a 2001 InfoWorld magazine poll agreed that "Web services are likely.
Introduction to Service-Oriented Architecture. Outline Definition Features Examples of SOA Web Service Standards Example Pros and Cons Integration with.
Web Services Andrea Miller Ryan Armstrong Alex. Web services are an emerging technology that offer a solution for providing a common collaborative architecture.
2006 IEEE International Conference on Web Services ICWS 2006 Overview.
Web Service What exactly are Web Services? To put it quite simply, they are yet another distributed computing technology (like CORBA, RMI, EJB, etc.).
Web Services Michael Smith Alex Feldman. What is a Web Service? A Web service is a message-oriented software system designed to support inter-operable.
Web services A Web service is an interface that describes a collection of operations that are network-accessible through standardized XML messaging. A.
Web service testing Group D5. What are Web Services? XML is the basis for Web services Web services are application components Web services communicate.
Introduction SOAP History Technical Architecture SOAP in Industry Summary References.
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
Web Services Mohamed Fahmy Dr. Sherif Aly Hussein.
1 Web Services Distributed Systems. 2 Service Oriented Architecture Service-Oriented Architecture (SOA) expresses a software architectural concept that.
C Copyright © 2009, Oracle. All rights reserved. Appendix C: Service-Oriented Architectures.
CIS 375—Web App Dev II Microsoft’s.NET. 2 Introduction to.NET Steve Ballmer (January 2000): Steve Ballmer "Delivering an Internet-based platform of Next.
What are Webservices?. Web Services  What are Web Services?  Examine important Web Services acronyms (UDDI, SOAP, XML and WSDL)  What are the benefits.
Web Services Architecture1 - Deepti Agarwal. Web Services Architecture2 The Definition.. A Web service is a software system identified by a URI, whose.
11/16/2012ISC329 Isabelle Bichindaritz1 Web Database Application Development.
Distributed Communication via ASP.Net Web Services and.Net Remoting By Richard King.
Web Service Bright + Ong. Meaning A collection of protocols and standards used for exchanging data between applications or systems Written in various.
Web Services: An Introduction Al Kassam Briyante Software Corp
WEB SERVICES Mahmoud Rabie – EGJUG W EB SERVICES The world before Situation Problems Solutions Motiv. for Web Services Probs. with Curr. sols. Web.
Web Server Administration Web Services XML SOAP. Overview What are web services and what do they do? What is XML? What is SOAP? How are they all connected?
Lecture 15 Introduction to Web Services Web Service Applications.
Web Services Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Dynamic Content On Edge Cache Server (using Microsoft.NET) Name: Aparna Yeddula CS – 522 Semester Project Project URL: cs.uccs.edu/~ayeddula/project.html.
XML Web Services Architecture Siddharth Ruchandani CS 6362 – SW Architecture & Design Summer /11/05.
1 Advanced Software Architecture Muhammad Bilal Bashir PhD Scholar (Computer Science) Mohammad Ali Jinnah University.
Introduction to Server-Side Web Development Introduction to Server-Side Web Development using JSP and Web Services JSP and Web Services 18 th March 2005.
Web Services Presented By : Noam Ben Haim. Agenda Introduction What is a web service Basic Architecture Extended Architecture WS Stacks.
1 Web Services Web and Database Management System.
S imple O bject A ccess P rotocol Karthikeyan Chandrasekaran & Nandakumar Padmanabhan.
Kemal Baykal Rasim Ismayilov
SOAP-based Web Services Telerik Software Academy Software Quality Assurance.
CSIT 220 (Blum)1 Remote Procedure Calls Based on Chapter 38 in Computer Networks and Internets, Comer.
S O A P ‘the protocol formerly known as Simple Object Access Protocol’ Team Pluto Bonnie, Brandon, George, Hojun.
An Introduction to Web Services Web Services using Java / Session 1 / 2 of 21 Objectives Discuss distributed computing Explain web services and their.
Introduction to Web Services. Agenda Motivation History Web service model Web service components A walkthrough examples.
Web Services Using Visual.NET By Kevin Tse. Agenda What are Web Services and Why are they Useful ? SOAP vs CORBA Goals of the Web Service Project Proposed.
Chapter 14 Advanced Architectural Styles. Objectives Describe the characteristics of a distributed system Explain how middleware supports distributed.
Web Services An Introduction Copyright © Curt Hill.
Providing web services to mobile users: The architecture design of an m-service portal Minder Chen - Dongsong Zhang - Lina Zhou Presented by: Juan M. Cubillos.
Intro to Web Services Dr. John P. Abraham UTPA. What are Web Services? Applications execute across multiple computers on a network.  The machine on which.
A service Oriented Architecture & Web Service Technology.
SAP Integration with Oracle 11g Muhammad Raza Fatmi.
Service Oriented Architecture (SOA) Prof. Wenwen Li School of Geographical Sciences and Urban Planning 5644 Coor Hall
Sabri Kızanlık Ural Emekçi
WEB SERVICES.
WEB SERVICES Mr. P. VASANTH SENA.
WEB SERVICES DAVIDE ZERBINO.
WEB SERVICES Mahmoud Rabie – EGJUG 2006.
Presentation transcript:

Using Web Services in Flash MX 2004 Pro in 60 Minutes or Less

Theo Rushin Jr Web Application Developer/Trainer I am an avid snowboarder and skier always looking for the deep powder. When I’m not carving my way through the trees or dreaming of the next big snowfall, I work as a consultant at the National Institutes of Health (NIH) where I lead the design and development of many web-based solutions. I have spent the past 6 years establishing myself as an expert Coldfusion and Flash Rich Internet Application Developer and Trainer. During my 6 years of web application development I have created and supported many enterprise-wide web-based applications. I can be reached at or on the

Presentation Agenda An introduction to Web Services Flash MX 2004 and Web Services Six Easy Steps Now It’s Your Turn

According Wikipedia, the free (and mostly accurate) online encyclopedia; “What is a Web Service?” A web service is a collection of protocols and standards used for exchanging data between applications or systems. Software applications written in various programming languages and running on various platforms can use web services to exchange data over computer networks like the Internet in a manner similar to inter-process communication on a single computer.

“Why should I consume web services?” The major reasons for using Web services are to gain: 1.Interoperability among distributed applications that span diverse hardware and software platforms. 2.Accessibility of applications through firewalls using Web protocols. 3.A cross-platform, cross-language data model (XML) that facilitates developing heterogeneous distributed applications.

“What are some of the standards used?” XML SOAP WSDL

“I think I know what XML is” Extensible Markup Language (XML) is a general-purpose markup language for creating special-purpose markup languages. It is capable of describing many different kinds of data. Its primary purpose is to facilitate the sharing of data across different systems, particularly systems connected via the Internet.

“So what is SOAP?” SOAP (Simple Object Access Protocol) defines the XML based message format that applications use to communicate and inter-operate with each other over the internet. The heterogeneous environment of the internet demands that applications support a common data encoding protocol and message format. SOAP makes object access simple by allowing applications to invoke object methods, or functions, residing on remote servers. A SOAP application creates a request block in XML, supplying the data needed by the remote method as well as the location of the remote object itself.

“And what is WSDL?” WSDL (Web Service Description Language - often pronounced "Whiz-Dull".), the proposed standard for how a Web service is described, is an collection of metadata about XML-based service used for describing what business do and how to access their services electronically. We can say WSDL is a XML- Based service IDL (Interface Definition Language) that defines the service interface and its implementation characteristics. WSDL describes the SOAP messages that define a particular Web service.

“What are some of the advantages of using web services?” Web services provide interoperability between various software applications running on disparate platforms. Web services use open standards and protocols. Protocols and data formats are text-based where possible, making it easy for developers to comprehend. By utilizing HTTP, web services can work through many common firewall security measures without requiring changes to the firewall filtering rules. Web services easily allow software and services from different companies and locations to be combined easily to provide an integrated service. Web services allow the reuse of services and components within an infrastructure

“What are some of the disadvantages of using web services?” Web services standards for features such as transactions are currently nonexistent or still in their infancy compared to more mature distributed computing open standards such as CORBA. Web services suffer from poor performance compared to other distributed computing approaches such as RMI, CORBA, or DCOM. This is a common trade-off when choosing text-based formats. By utilizing HTTP, web services can evade existing firewall security measures whose rules are intended to block or audit communication between programs on either side of the firewall.

“Where can I find some publicly accessible web services?” ?node= http:// ?node=

Flash MX 2004 and Web Services Macromedia Flash MX Professional 2004 provides a powerful, rapid development tool for building web service consumers. New tools and components in Flash MX Professional 2004 simplify and speed the development of web service-based applications.

Flash MX 2004 and Web Services continued Flash MX 2004 comes with two client side methods for connecting to web services. The first is by using the WebServiceConnector component, the second is by using the web service classes and actionscript.

“Are there any disadvantages to consuming web services within Flash?” Both of the methods for connecting to web services in Flash MX 2004 have a couple of disadvantages. Can be slow when returning large datasets … The security features of Flash could prevent access to web service …

When returning large datasets It can be really slow when returning larger datasets (1000+). The reason for this is that, even with the MX 2004 speed improvements, it can take a lot of processor power to convert the returned xml into flash actionscript objects. When returning large result sets from a web service it is a far better solution to go with Flash Remoting. Flash remoting will return the result set as AMF instead of XML which has a much faster transfer speed (much more compressed) and does not need to be converted to flash actionscript (as it already is).

In a nutshell … The AMF protocol, which is proprietary to Macromedia, is a very lightweight binary format that cuts the bulk out of packets, meaning data exchange is a lot faster than with XML. “AMF?”

Security – Cross domain policy The second disadvantage of using the new built in client side web service features of Flash MX 2004 are the security features. In order to use a web service that is not located on the same server, the owner of that service would need to place a cross domain policy file allowing the flash movie access to it's service.

Since you asked … For security reasons, a Macromedia Flash movie playing in a web browser is not allowed to access data that resides outside the exact web domain from which the SWF originated. A cross-domain policy file is a simple XML file that gives the Flash Player permission to access data from a given domain without displaying a security dialog. When placed on a server, it tells the Flash Player to allow direct access to data on that server, without prompting the user grant access. (Macromedia TechNote tn_14213) “Cross domain policy?”

So why should I even use Flash? (instead of ColdFusion, ASP.NET, etc.) Greater degree of interactivity. Combine audio and video to produce a richer experience. You don’t have to choose! You can leverage your existing server-side code, written in Coldfusion,.Net, PHP, etc., to consume web services using Flash MX 2004!

“What do I need to do to get started?” Discover the web service. Deploy the user interface components. Register the web service in Flash. Configure the WebServiceConnector. Bind the user interface components to the WebServiceConnector. Trigger the WebServiceConnector. And That’s It!

And Now On With The Show!

Additional Reading Macromedia Flash MX Professional 2004 Application Development: Training from the Source Macromedia Flash MX 2004 Professional for Server Geeks mx/flash/webservices.html