User Guide
Chapter 15: Interacting with Remote Servers 241
Connection caching actions and attributes
The following table shows which CFFTP attributes are required for CFFTP actions
when employing connection caching. If connection caching is not used, the
connection attributes USERNAME, PASSWORD, and SERVER must be specified.
Moving Complex Data Structures Across the Web with
WDDX
You can move complex data structures across the Web using Web Distributed Data
Exchange (WDDX). This capability is based on XML 1.0 and can be used to exchange
data between CFML applications and other applications.
Additionally, server-to-browser and browser-to-server JavaScript data exchanges can
be instantiated using WDDX. Server data can be transferred to the browser and
converted to JavaScript objects, while JavaScript data generated on the browser can be
serialized, which involves translating the native data structures into an abstract
representation in XML, and transferred to the application server. Conversely, you can
deserialize WDDX XML into a native data structure.
This functionality is encapsulated in the CFWDDX tag.
While WDDX is a valuable tool for ColdFusion developers, it’s utility is not limited to
CFML. WDDX serialization of common programming data structures such as arrays,
record sets, and structures enables data communication, via HTTP, across a range of
languages and platforms.
CFFTP Required Attributes by Action
Action Attributes Action Attributes
Open none Rename EXISTING
NEW
Close none Remove SERVER
ITEM
ChangeDir DIRECTORY GetCurrentDir none
CreateDir DIRECTORY GetCurrentURL none
ListDir NAME
DIRECTORY
ExistsDir DIRECTORY
GetFile LOCALFILE
REMOTEFILE
ExistsFile REMOTEFILE
PutFile LOCALFILE
REMOTEFILE
Exists ITEM