phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


PHP WDDX: Understanding Anatomy of WDDX

Tag: wddx, distributed data, structure   Category: PHP Application
post: 29 Apr 2008 read: 249


Web Distributed Data Exchange Step By Step tutorial - Part 2: Not like WSDL, anatomy of WDDX is more simple. It is simple to understand. The structure of WDDX documents has remained consistent since 1999 with the release of WDDX 1.0. You may see this document like a DTD.

When we talk about WDDX document, we must talk about WDDX Packets. WDDX use packets to exchange data. Packets are simple XML documents passing data in WDDX format. Look following anatomy:

This is anatomy of WDDX without notes or comments:


<wddxPacket version='1.0'>
  <header />
  <data>
    <!-- WDDX data -->
</wddxPacket>

This is anatomy of WDDX with notes or comments:


<wddxPacket version='1.0'>
  <header>
    <comment>
	  It contains a comment
	</comment>
  </header>
  <data>
    <!-- WDDX data -->
</wddxPacket>

You can build this structure manually using an extension such as DOM or XMLWriter. But, PHP have wddx extension. So, you don't need much effort to create WDDX document.



Series this article:
PHP WDDX: Introduction
PHP WDDX: Understanding Anatomy of WDDX
PHP WDDX: Understanding Data Elements
PHP WDDX: Understanding Simple Data Type
PHP WDDX: Using Array Elements
PHP WDDX: Struct Element
PHP WDDX: Recordset Element
PHP WDDX: Simple Serialization Using PHP function
PHP WDDX: Complex Serialization
PHP WDDX: Unserializing Data
PHP WDDX: Creating Web Service Server
PHP WDDX: Creating Web Service Client

| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
mod_rewrite - Part 1: create your "fantasy" URL

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


615
posting