★ wanayoo — archive 1999 http://www.webdeveloper.com/xml/xml_120298.htmlNouvelle recherche | Portail wanayoo
internet.com

Go to WebDeveloper Home

Seek and you shall

or search all of internet.com
Looking for a Site Map?
Vote for WD!
Please keep
voting for us
as a Top 100
Web site!

The Web Developer Network
WebDeveloper.com
Streaming Media World
WebReference.com
Web Developer's Virtual Library
BrowserWatch
Java Boutique
Web Developer's Journal
JavaScript Source
ScriptSearch
Web Developer Forums
Web Developer News

internet.com
Internet News
Internet Stocks
Internet Technology
Web Developer
Internet Marketing
ISP
Downloads
Internet Resources
International

Search internet.com
Advertising Info
Corporate Info
Internet Trade Shows

internet.commerce
Be an Affiliate
Be a Partner
Software Store
Computer Help
Register a Domain
Be Domain Registrar
e-solutions
Internet Jobs
A/V Network
Map Your Website
Rent E-mail Lists
Bookstore
Press Release dist.
Sell Ad Space
Internet Research
Venture Capital
Web Publishing
Build Your Intranet
Expert Advice
Get e-Biz Intell.
Content for Websites

  Top Ten Internet Stocks
THE XML FILES
A WebDeveloper.com Feature

WDDX: A Deeper Look

by Nate Zelnick

Any standard is better than nothing at all

Last time we looked at the underlying reasons why Allaire created its XML-based inter-application data transmission standard called Web Distributed Data eXchange (WDDX). As I said this is a system that is designed to move data generically between different applications so they are available with their context intact.

The key to this is stripping the task down to its most basic form. The reason for taking this approach is to solve the problem pragmatically without trying to provide a totalistic solution that solves all problems forever. Avoiding the "golden hammer" approach, according to Allaire's Simeon Simeonov, gets WDDX out and into the hands of developers faster so that it can be put to use quickly to solve real problems today.

Eventually, when all of the ancillary services and pieces of the full XML framework are finished, approved by their respective standards bodies and consortia, Sim thinks that WDDX will be superceded by a completely XML native solution. In the meantime, though, WDDX provides a way for many developers to experiment with some of the opportunities that XML opens up without having to wait and without having to make expensive investments in new frameworks based on unfinished specifications.

WDDX: Macro View

Just as there are different operating systems because there are different problems that need to be addressed in different manners, there are different frameworks for developing different applications.

One of the problems that XML will eventually solve in this heterogeneous world is to provide the means for classes of related applications built with different tools on different systems to exchange any information arbitrarily. It is these services, all built on top of the basic XML grammar and parsing rules, that are still being hashed out. So WDDX had to find a way to bridge frameworks without these dependencies.

To build a bridge, you have to find a point on either side of a divide from which to extend a link. This is what Allaire did.

Lowest Common Denominator

WDDX had to define structures that would be common to all of the frameworks that would need to share data. Originally this had just meant ColdFusion, but as Sim and others thought about it, it became clear that this could also mean Active Server Pages, Perl, JavaScript, Java, Python, PHP or anything else. What would be required is a way to translate from one framework's way of representing data to any of the others, without knowing which other framework would be the target.

Since the internal representation of a data structure is necessarily different for each, Sim went to the radical root of the problem and defined what could be said to be similar about each system. What he came up with is a few simple and a few complex data types that were generic to most (but not all) of these different languages and frameworks.

Essentially, the simple types are strings, numbers, Boolean and dates. Complex types are arrays, structures, associative arrays (multidimensional arrays of arbitrary complexity) and recordsets. Recordsets are a special case of associative arrays used to represent ColdFusion and ASP recordset objects. By taking this approach, WDDX provides building blocks for data structures that are neither efficient nor compact nor elegant. But they work. And they work in ways that are quite surprising.

[ Click here to move to the next part of this article ]

Fast Jump to Anywhere on WebDeveloper.com:

Free ISP info!



Copyright © 1999 internet.com Corporation
All Rights Reserved. Legal Notices.
Contact the WebDeveloper.com staff

Last modified: Friday, 29-Oct-1999 05:17:04 EDT

http://www.internet.com

 

Refresh Daily
Join Editor-in-Chief David Fiedler The Editor With No Time and find truth, justice, and a clue or two.


Browse by Category
[ Site Map ]

ActiveX / VBscript
Animated GIF Archive
Browsers
CGI / Perl
Database Connectivity
E-Commerce
HTML-Advanced: DHTML, CSS
HTML / Site Authoring Tools
Intranet/Groupware
Java
JavaScript
Multimedia: Audio / Video / Streaming Technologies
Opinions
Refresh Daily: Editorial Column
Security
Servers & Server Tools
Site Design / Graphics
Site Management / Marketing / Log File Analysis
VRML / 3D
XML