Your privacy matters: This site uses cookies to analyze site usage and provide social media features. Learn More.

Working with XML, Web Services, and the File System in ColdFusion 10

CF-120 (2 Days)

Request Pricing

Advanced ColdFusion Training Overview

Accelebrate's Advanced ColdFusion Training: Working with XML, Web Services, and the File System in ColdFusion 10 training course teaches attendees how to produce and parse XML, build and call SOAP-based and RESTful Services, and create push applications using HTML5 WebSockets.

Location and Pricing

Most Accelebrate courses are delivered as private, customized, on-site training at our clients' locations worldwide for groups of 3 or more attendees and are custom tailored to their specific needs. Please visit our client list to see organizations for whom we have delivered private in-house training. These courses can also be delivered as live, private online classes for groups that are geographically dispersed or wish to save on the instructor's or students' travel expenses. To receive a customized proposal and price quote for private training at your site or online, please contact us.

Advanced ColdFusion Training Objectives

  • Manipulate the file system with CFFILE
  • Produce, parse, and transform XML
  • Build and call SOAP-based and RESTful Web Services
  • Fetch web content with CFHTTP
  • Create push applications using HTML5 WebSockets

Advanced ColdFusion Training Outline

Expand All | Collapse All | Printer-Friendly

Introduction
Manipulate the File System with <cffile>
  • Read and Write Text Files with <cffile>
  • Read Plain Text Documents
  • Built-in Function: ExpandPath()
  • Reading Files with the <cffile> tag
  • Write Text File
  • Built-in Function: FileExists()
  • Build a Simple Message Board or Log File
Upload Documents with <cffile>
  • Using the <cffile> tag for an Upload
  • After a <cffile> Upload: FILE Variables
  • Upload Image and Dynamically Create Static HTML Pages
  • Deeper Examination: HTML and a File Upload
  • Saving long variable values with <cfsavecontent>
  • Using the <cffileupload> tag for Multiple Uploads in ColdFusion 10
  • Using <cfdirectory>
  • Using <cfcontent> to create an Excel Spreadsheet
  • Upload External Files and Create Photo Gallery Page
Using XML with ColdFusion
  • XML Syntax Basics
    • XML Logical Structure
    • Each XML document must begin with a language declaration
    • Each XML document must have a single root element, which normally contains other child elements
    • XML Physical Structure
    • Case Sensitivity
    • Required Closing Tags
    • New Syntax for "empty elements"
    • Tags must be nested properly
    • Attribute Values must be enclosed properly in single or double quotes
    • XML Comments
    • XML Logic: Designing Datasheets
  • Parsing XML data with ColdFusion
    • Convert an XML datasheet into an XML Document Object with XMLParse()
    • Case-sensitive Element Names with XMLParse()
    • Demo: Referring to Specific XML nodes
    • Method 1 - Array notation with generic node names
    • Method 2 - Associative Array notation
    • Method 3 - Array notation with specific node names
    • Methods 4(+) - Mix and Match
    • Loop through each node with <cfloop>
    • Deeper Examination: Counting Nodes
    • Manipulating XML data with Built-in Functions
    • List of Structure/Array Functions that may be used on an XML Document Object
    • List of XML-specific Functions
    • Create a Calendar of Events Built from External XML Files Provided by External Organizations
  • Manipulating the XML Document Object: Adding Elements
    • Build XML Object in .cfm Document with <cfxml> Tag
    • Query Database to Build XML Document Object
    • Add nodes to Existing XML Document Object
    • Deeper Examination: Adding an XML Attribute
    • Add an Event to the Calendar
  • Create a Query Object from Existing XML (optional)
    • Combine Multiple XML Document Objects into One
    • Deeper Examination: Looping through the XML
    • Convert XML Document Objects into a Query Object with QueryNew()
    • Deeper Examination: Creating the Query Object
    • Deeper Examination: Query the query
    • Co-mingle the Events on the Calendar (optional)
  • Extensible Stylesheet Language (XSL) Basics
    • XSL, XSLT, and XSLFO
    • XSL Basics: Linking to an XSL Stylesheet
    • Examining an XSL Stylesheet
    • The xsl:stylesheet tag and the namespace declaration
    • The <xsl:template> tag
    • The <xsl:value-of> tag
    • Referencing iterating nodes
  • Server-side XSL Transformation with ColdFusion
    • Transforming XML Data with XSL
    • Deeper Examination: XMLTransform()
    • Idea! Transforming XML Data into XML Data
    • Transform XML data
  • XPath Basics
    • XPath: the XSL Node Matching Syntax
    • Choosing Between Equivalent XPath Expressions
    • An XPath testing tool
  • Using XPath with ColdFusion
    • Select Nodes Based on Attribute Values
    • Deeper Examination: XPath expression
    • Deeper Examination: XMLSearch()
    • Idea! Convert an XML Document Object to a Query Object
    • Using XPath to select specific XML elements
Working with <cfhttp>
  • Making http requests with <cfhttp>
    • Using <cfhttp> to display a complete page: Screen Scrape
    • Using <cfhttp> to download a complete page and save with <cffile>
    • Attributes of <cfhttp>
    • Convert a Text File into a Query with <cfhttp>
    • Deeper Examination: <cfhttp> tag
    • Deeper Examination: <cfoutput> block
    • While looping though the records
    • Add a Column to Query
    • Deeper Examination: QueryAddColumn() function
    • Idea! Dynamically Creating Static Pages
    • Using <cfhttp> to Access and Parse External Data
  • Passing Variables with <cfhttp> and <cfhttpparam>
    • Creating an Intelligent Agent
    • Examine a Simple Traditional Application
    • Convert Simple Application into an Intelligent Agent
    • Deeper Examination: agent.cfm
    • Deeper Examination: agent-page2.cfm
    • Deeper Examination: <cfsetting>
    • Demo: Screen Scraping for Data
    • Simulate the Post Method with <cfhttp> and Create an "Intelligent Agent"
ColdFusion and Web Services
  • Working with Web Services
    • Examples
    • Producers vs. Consumers
    • Definitions
    • Creating WSDL Documents (with a brief discussion of what’s new in WSDL 2.0 and SOAP 1.2)
    • Converting CFCs into Web Services
    • Step 1 - Convert the existing CFC into a Web Service
    • Step 2 - Examine a local WSDL file from the demo
    • Step 3 - Invoking a ColdFusion Web Service
    • Deeper Examination
    • Deeper Examination: Passing an argument to a Web Service
    • SOAP
    • A note about security
    • Convert Existing CFC into Web Service
  • Invoking SOAP Web Services
    • Locating Web Services
    • Invoking Web Services from .NET, Java and more
    • Demo: Random Quote Generator
    • Deeper Examination: <cfinvoke> and <cfinvokeargument>
    • Consuming External Web Services
  • Building and Invoking RESTful Services
    • REST Explained
    • Setting the rest and restpath Attributes in your CFC
    • Calling a RESTful Service
    • Debugging your RESTful service
HTML5 WebSockets
  • Overview of WebSockets
  • Pushing Data from ColdFusion to the Client
  • Defining the Channel in application.cfc
  • Using the CFWEBSOCKET tag to establish a WebSocket Connection
Conclusion
Request Pricing

Lecture percentage

40%

Lecture/Demo

Lab percentage

60%

Lab

Course Number:

CF-120

Duration:

2 Days

Prerequisites:

All attendees must have taken Accelebrate's Beginning ColdFusion 10 training or have equivalent experience.

Training Materials:

All attendees receive comprehensive courseware.

Software Requirements:

  • Any modern version of Windows, Mac OS X, or Linux, with at least 3 GB of RAM
  • ColdFusion 10 or later - ColdFusion should be set up to run as a stand-alone server for purposes of the class.
  • Adobe Dreamweaver CS6 or later, ColdFusion Builder 2 or later, or other ColdFusion IDE of your choice
  • Modern web browser

Contact Us:

Accelebrate’s training classes are available for private groups of 3 or more people at your site or online anywhere worldwide.

Don't settle for a "one size fits all" public class! Have Accelebrate deliver exactly the training you want, privately at your site or online, for less than the cost of a public class.

For pricing and to learn more, please contact us.

Contact Us Train For Us

Toll-free in US/Canada:
877 849 1850
International:
+1 678 648 3113

Toll-free in US/Canada:
866 566 1228
International:
+1 404 420 2491

925B Peachtree Street, NE
PMB 378
Atlanta, GA 30309-3918
USA

Subscribe to our Newsletter:

Never miss the latest news and information from Accelebrate:

Microsoft Gold Partner

Please see our complete list of
Microsoft Official Courses

Recent Training Locations

Alabama

Huntsville

Montgomery

Birmingham

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

San Francisco

Oakland

San Jose

Orange County

Los Angeles

Sacramento

San Diego

Colorado

Denver

Boulder

Colorado Springs

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Miami

Jacksonville

Orlando

Saint Petersburg

Tampa

Georgia

Atlanta

Augusta

Savannah

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Ceder Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

Banton Rouge

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Hagerstown

Frederick

Massachusetts

Springfield

Boston

Cambridge

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Saint Paul

Minneapolis

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Reno

Las Vegas

New Jersey

Princeton

New Mexico

Albuquerque

New York

Buffalo

Albany

White Plains

New York City

North Carolina

Charlotte

Durham

Raleigh

Ohio

Canton

Akron

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Tulsa

Oklahoma City

Oregon

Portland

Pennsylvania

Pittsburgh

Philadelphia

Rhode Island

Providence

South Carolina

Columbia

Charleston

Spartanburg

Greenville

Tennessee

Memphis

Nashville

Knoxville

Texas

Dallas

El Paso

Houston

San Antonio

Austin

Utah

Salt Lake City

Virginia

Richmond

Alexandria

Arlington

Washington

Tacoma

Seattle

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Edmonton

Calgary

British Columbia

Vancouver

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan

© 2013-2019 Accelebrate, Inc. All Rights Reserved. All trademarks are owned by their respective owners.