PHP WDDX: Understanding Anatomy of WDDX
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 Tag: wddx, distributed data, structure Category: PHP Application Post : April 29th 2008 Read: 2,649 blog comments powered by Disqus |
