spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / programming / coldfusion / 1 current pageTo page 2To page 3To page 4To page 5
[next]

Managed Services Subject Matter Expert (MO)
Next Step Systems
US-MO-Saint Louis

Justtechjobs.com Post A Job | Post A Resume
Developer News
Google to Shake Up Browsers With Own Launch
Mozilla's Ubquity Mashup: For The Masses?
iPhone Users Just Want to Have Fun

Programming ColdFusion MX: Web Services

A relatively new technology, web services seeks to provide a global object repository where applications can be assembled using using relatively simple protocols. Here is an overview of consuming, producing and security of web services. By Rob Brooks-Bilson.

An excerpt from the book: Programming ColdFusion MX, 2nd Edition by O'Reilly.

There's no doubt that web services are hot. It's impossible to pick up a trade publication without seeing at least half a dozen articles extolling the virtues of the web services revolution. Although still considered an immature technology, web services offer a great deal of promise in many spaces. Fully realized, the web services vision seeks to provide a global object repository where applications can be assembled from self-contained software components using relatively simple protocols and a ubiquitous transport mechanism--the Internet. In ColdFusion MX, web services are built using ColdFusion Components (CFCs).

Web services have many uses. Besides the potential to reduce the amount of code you have to write (by providing an existing web service that fits your needs), they also offer interesting possibilities for enterprise application integration, modernizing legacy applications, and providing access to data in new and interesting ways. As the idea of web services continues to evolve, so too will the ways in which they are used. For now, ColdFusion MX gives you the power to work with what's available, while at the same time maintaining the flexibility to include new pieces of the web services pie as they mature.

This chapter starts with an overview of web services. It then covers consuming web services, producing web services, and web services security.

Web Services Overview

Web services provide a new way to build loosely coupled applications from components. At a basic level, a call to a web service is similar to a remote procedure call. A client makes a request of a remote object, the object performs some action, and a response is sent back to the client. At a higher level, applications built from web services may be assembled from components local to the organization or geographically distributed across the Internet. Web services provide a framework for standardizing both the interface and transport layer for these applications. Figure 24-1 shows a basic web services architecture.

Figure 24-1. Web services architecture

 

Web services are really an aggregation of several technologies layered on top of common Internet protocols such as HTTP. To better understand just what web services are, as well as how they work, let's break the architecture down into its major parts. There are four main components that make up a web service:

Extensible Markup Language (XML)
XML can be considered the foundation of the web services stack. It provides a standardized platform- and language-neutral format for exchanging data among applications. More information about XML can be found at http://www.w3.org/XML/. Additional information on working with XML in ColdFusion MX can be found in Chapter 22.

Web Services Description Language (WSDL)
WSDL is an XML format for describing a web service. It describes the purpose of the web service, where and how you can access it, and what functionality (methods) it exposes. We'll be discussing various parts of the WSDL throughout the chapter.

Simple Object Access Protocol (SOAP)
SOAP provides an XML-based messaging framework for web services. A SOAP message is essentially an XML document made up of an envelope containing an optional header and required body. Although not yet a W3C recommendation, Version 1.1 does have standing as a W3C note. You can read more about SOAP at http://www.w3.org/TR/SOAP/. You don't need to know SOAP to make use of web services in ColdFusion MX, as messaging is handled automatically by ColdFusion MX's underlying implementation of the Apache Axis SOAP engine.[1]

Universal Description, Discovery, and Integration (UDDI)
UDDI is basically a directory service for web services. It provides a standardized interface for registering and querying web service metadata. There are currently four global public UDDI directories:

  • IBM: http://uddi.ibm.com/
  • Microsoft: http://uddi.microsoft.com/
  • SAP: http://uddi.sap.com/
  • NTT Communications: http://www.ntt.com/uddi/index-e.html
  • Besides global public directories, many specialized private directories exist. One of the most popular is XMethods (http://www.xmethods.net). It's also possible to set up your own private UDDI directory (say for use within your organization). A number of tools are available for doing this, including UDDI4J (http://www-124.ibm.com/developerworks/oss/uddi4j/).

    ColdFusion MX does not support UDDI directly. However, it is possible to register web services you publish using ColdFusion MX with UDDI directories. Additionally, you can manually search UDDI directories for available web services you may wish to use.

    As ColdFusion MX has the potential to be both a consumer and a producer of web services, it's important for you to see how this all fits together. Figure 24-2 shows how ColdFusion MX fits into the web services picture.

    Figure 24-2. ColdFusion and web services

     


    home / programming / coldfusion / 1 current pageTo page 2To page 3To page 4To page 5
    [next]



    JupiterOnlineMedia

    internet.comearthweb.comDevx.commediabistro.comGraphics.com

    Search:

    Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

    Jupitermedia Corporate Info


    Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

    Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

    Solutions
    Whitepapers and eBooks
    Intel PDF: Virtualization Delivers Data Center Efficiency
    Intel eBook: Managing the Evolving Data Center
    Microsoft Article: BitLocker Brings Encryption to Windows Server 2008
    Symantec eBook: The Guide to E-Mail Archiving and Management
    Microsoft Article: RODCs Transform Branch Office Security
    Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
    Avaya Article: Advancing the State of the Art in Customer Service
    Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
    Avaya Article: Avaya AE Services Provide Rapid Telephony Integration with Facebook
    Go Parallel Article: Getting Started with TBB on Windows
    HP eBook: Storage Networking , Part 1
    MORE WHITEPAPERS, EBOOKS, AND ARTICLES
    Webcasts
    Intel Seminar: Efficiencies in Hardware/Software Virtualization
    HP Webcast: Disaster Recovery Planning
    Go Parallel Video: Performance and Threading Tools for Game Developers
    HP Video: StorageWorks EVA4400 and Oracle
    HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
    MORE WEBCASTS, PODCASTS, AND VIDEOS
    Downloads and eKits
    IBM TCO eKIT: Your IT Budget is Under Attack, Get in Control
    IBM Energy Efficiency eKIT: Learn How to Reduce Costs
    30-Day Trial: SPAMfighter Exchange Module
    Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
    Iron Speed Designer Application Generator
    MORE DOWNLOADS, EKITS, AND FREE TRIALS
    Tutorials and Demos
    Microsoft Article: Silverlight Streaming--Free Video Hosting for All
    Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
    HP Demo: StorageWorks EVA4400
    MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
    webref The latest from WebReference.com Browse >
    The Partial Function Application in JavaScript · Creating Dynamic RSS Feeds with Ajax · Performance Optimizations for High Speed JavaScript
    Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
     The latest from internet.com
    Cablevision Deploys More Hotspots for Commuters · Dell Joins the Netbook Movement with its Inspiron Mini 9 · It's Official: Dell Enters the Netbook Fray

    Created: March 27, 2003
    Revised: Sept 1, 2003

    URL: http://webreference.com/programming/coldfusion/1