Building + Consuming WebServices CF Style Kevin Penny MMCP (4.5/5/MX6)

Slides:



Advertisements
Similar presentations
웹 서비스 개요.
Advertisements

18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
Web Service Architecture
Overview of Web Services
Intesar G Ali IT DepartmentPalestinian Land Authority Web services Prepared by: Intesar Ali IT Department PLA August 2010.
Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
Web Services Web Services are the basic fundamental building blocks of invoking features that can be accessed by an application program. The accessibility.
1 Understanding Web Services Presented By: Woodas Lai.
Web Services in ColdFusion 7 JaxFusion November, 2006.
Web Services Seminar: Service Description Languages
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.
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.
1 Introduction to SOA. 2 The Service-Oriented Enterprise eXtensible Markup Language (XML) Web services XML-based technologies for messaging, service description,
G O B E Y O N D C O N V E N T I O N WORF: Developing DB2 UDB based Web Services on a Websphere Application Server Kris Van Thillo, ABIS Training & Consulting.
Presentation 7 part 2: SOAP & WSDL. Ingeniørhøjskolen i Århus Slide 2 Outline Building blocks in Web Services SOA SOAP WSDL (UDDI)
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.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 42 Web Services.
XML Technologies and Applications Rajshekhar Sunderraman Department of Computer Science Georgia State University Atlanta, GA 30302
ΗΛΕΚΤΡΟΝΙΚΟ ΕΜΠΟΡΙΟ Web Services Overview Mary Grammatikou 9/06/2009.
And so on CGI programming Web Services Java Programs for the Web.
Web Services CS Web Services Internet-available services using XML messaging, for computer-computer interaction Not tied to any OS or language Self-describing:
1 Java Server Programming zLecture 1 focuses on: yIntroduction to web services y Web Services using Axis y The bigger Picture: Introduction to J2EE y Java.
Web services A Web service is an interface that describes a collection of operations that are network-accessible through standardized XML messaging. A.
Processing of structured documents Spring 2003, Part 6 Helena Ahonen-Myka.
Web Services Overview and Trends David Purcell MnSCU OoC IT.
What are Webservices?. Web Services  What are Web Services?  Examine important Web Services acronyms (UDDI, SOAP, XML and WSDL)  What are the benefits.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 25 How.NET and Web Services Work How.NET and Web Services Work.
1 HKU CSIS DB Seminar: HKU CSIS DB Seminar: Web Services Oriented Data Processing and Integration Speaker: Eric Lo.
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?
Web Services Week 7 Aims: A detailed look at the underlying mechanisms for communication between web services Objectives: SOAP, WSDL, UDDI.
Dodick Zulaimi Sudirman Lecture 14 Introduction to Web Service Pengantar Teknologi Internet Introduction to Internet Technology.
XML – An Introduction Structured Data Mark-up James McCartney CSCE 590, Cluster and Grid Computing.
Web Services BOF This is a proposed new working group coming out of the Grid Computing Environments Research Group, as an outgrowth of their investigations.
Web Services. ASP.NET Web Services  Goals of ASP.NET Web services:  To enable cross-platform, cross- business computing  Great for “service” based.
Introduction to Web Services Instructor: Dr. M. Anwar Hossain.
© Drexel University Software Engineering Research Group (SERG) 1 An Introduction to Web Services.
1 Web Services Web and Database Management System.
XML and Web Services (II/2546)
CP3024 Lecture 10 Web Services. What are Web Services?  “encapsulated, loosely coupled, contracted software objects offered via standard protocols” ZapThink.
Advanced Web Technologies Lecture #4 By: Faraz Ahmed.
C# 1 Web services CSC 298. C# 2 Web services  A technology to make libraries available across the internet.  In Visual Studio,  can create a web service.
Theo Rushin, Jr. Senior Web Application Developer World Singles and DoubleBlack Technologies 12/26/
Web services In this presentation… –what is a web service? –web service benefits –web service standards –web service definitions –web service actions.
Web Services An Introduction Copyright © Curt Hill.
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.
.NET Mobile Application Development XML Web Services.
Introduction to Web Services Presented by Sarath Chandra Dorbala.
INFSO-RI Enabling Grids for E-sciencE Web Services Mike Mineter National e-Science Centre, Edinburgh.
1 G52IWS: Web Services Description Language (WSDL) Chris Greenhalgh
Copyright 2007, Information Builders. Slide 1 iWay Web Services and WebFOCUS Consumption Michael Florkowski Information Builders.
Web Services Blake Schernekau March 27 th, Learning Objectives Understand Web Services Understand Web Services Figure out SOAP and what it is used.
Software Architecture Patterns (3) Service Oriented & Web Oriented Architecture source: microsoft.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 9 Web Services: JAX-RPC,
CFUNITED – The premier ColdFusion conference Creating and Consuming Web Services with CFML Charlie Arehart
Jim Fawcett CSE681 – SW Modeling & Analysis Spring 2005
Sabri Kızanlık Ural Emekçi
WEB SERVICES.
Unit – 5 JAVA Web Services
Introduction to Web Services
Implementing a service-oriented architecture using SOAP
WEB API.
Web Server Administration
Web services, WSDL, SOAP and UDDI
Chapter 42 Web Services.
Introduction to Web Services and SOA
Creating and Consuming Web Services with CFML
Presentation transcript:

Building + Consuming WebServices CF Style Kevin Penny MMCP (4.5/5/MX6)

Topics Covered Uses of Web Services Advantages of Web Services Web Service Diagram Languages of Web Services Creating Web Services Accessing Web Services Securing Web Services Best Practices References

Uses - Web Services in Action Remotely lookup Product Inventory on Vendor overseas on the Web Create a stock lookup that’s available to a Flash Mobile application Create an interface to an already existing application to share data internally with other systems at a company Time Card System that may ‘check-in’ / ‘check-out’ employees in one area of the company maintained at another Central Location. Search Term / Search Results interface (i.e. Google) Others??

Advantages – Old vs. New Old Method Form post of an xml file or specific value(s) as a name/value to a url The url receives the post and expects a certain ‘name(s)’ as input Processes the input and creates an XML document that the two parties agree on Response is a text/xml document that the sender receives back and parses and processes the response from the XML document. No Soap No WSDL No UDDI Limited New Method –(Web Services) Cfc created in Cold Fusion Function (method) created to ‘do’ something Parameters can be passed to function as arguments WSDL file is Generated automatically SOAP message created and accepted automatically Returnvalue specifies the value of the response.

Advantages (con’t) STANDARDS BASED - all speaking the same language that’s Industry Standard Network/Language/System Neutral – Can be implemented in many different languages behind the scenes, but can be made accessible via web services. WSDL File - describes what’s needed in a readable XML format that tells developers what to call, what to pass in, and what’s expected (if anything) Self Documenting – Write the code and the Documentation at the same time. Publicly Available (optionally) - Can be made publicly available in a web service directory as an API (application programming interface) to your application or a part of your application (see References area for UDDI) REUSE - you do not have to recreate application logic that someone else has already created and, therefore, you can build your applications faster

Example – Ask Geeves…(ripoff )Ask Geeves Form Post Web Service Call Web Service Output CFAdministrator setup WSDL FileWSDL ColdFusion Component Explorer for generated WSDL FileColdFusion Component

Languages - Your Web Service Toolkit You’ll need your… –XML (eXtensible Markup Language) ** –WSDL (Web Services Definition Language) * –SOAP (Simple Object Access Protocol) –UDDI (Universal Description, Discovery, and Integration) –Implementation Language of Choice ** ColdFusion/.Net/Flash/Java etc… –Familiarity with Structures and Arrays is a plus –** Denotes Most Important in the ToolKit for CF Developers

Diagram - Path of the Web Service

Creating Web Services The CFC Creation – The CFFunction Method/Function – The Access Method – The return ‘Datatype’ – The Code in the cffunction –business logic/database lookup/logging/tracking/permissions The CFRETURN value

Accessing Web Services Cfinvoke webservice= * –url to wsdl file on external server –Can be setup in CF Admin (just like a datasource) –Arguments can be passed to the web service as or inline (name/value pairs) –Method = xyz The ‘function’ you want to access –Createobject() inside a cfscript to invoke a webservice –Cfobject tag to call a webservice All options give the same performance * deontes my preference

Securing Your Web Services Providing Access to your Web Service –Methods Login/Password Reference Key Encrypted Keys Cfid/cftokens Jsessions etc IP Restrictions Bottom Line: however you would secure your website, you can secure your Web Service

Best Practices KISS Principle – Basic datatypes are preferred to complex datatypes –i.e. Strings compared to CFusion Queries Test before you publish + error trap – –if the cfc works prior to publishing it, it should work afterwards Caching can/may occur –be prepared for it Get familiar with One way of creating/consuming web services and use it (personal preference)

References ColdFusion Web Services – Beginners GuideBeginners Guide Googles Web Search API – XMethods.com – CFDOCS Online/LocalLocal UDDI Registry –IBMIBM “The Pragmatic Programmer”The Pragmatic Programmer –Book of the Month