WDDX


WDDX is a programming language-, platform- and transport-neutral data interchange mechanism designed to pass data between different environments and different computers.

History

WDDX was created by Simeon Simeonov of Allaire Corporation in 1998, initially for the ColdFusion server environment.
WDDX was open-sourced later that year.

Usage

WDDX is functionally comparable to XML-RPC and WIDL. The specification supports simple data types such as number, string, boolean, etc., and complex aggregates of these in forms such as structures, arrays and recordsets. There are WDDX interfaces for a wide variety of languages, including ColdFusion, Ruby, Python, PHP, Java, C++,.NET, Actionscript, lisp, Haskell, Perl.
The data is encoded into XML using an XML 1.0 DTD, producing a platform-independent but relatively bulky representation. The XML-encoded data can then be sent to another computer using HTTP, FTP, or other transmission mechanism. The receiving computer must have WDDX-aware software to translate the encoded data into the receiver's native data representation. WDDX can also be used to serialize data structures to storage. Many applications use WDDX to pass complex data to browsers where it can be manipulated with JavaScript, as an alternative to JSON.
Example from php.net:






3.1415926



Austin
Novato
Seattle