WDDX

from Wikipedia, the free encyclopedia

WDDX ( W eb D istributed D ata e X change ) is a platform and transport-neutral programming language mechanism for the exchange of data between different system environments and computers . The format supports simple data types such as numbers, character strings, Boolean etc. and complex states of these in the form of structures, arrays and data records (e.g. tables, typically from database queries). There are WDDX interfaces for a large number of programming languages. ColdFusion , Ruby , Python , PHP , Java , C ++ , .NET , ActionScript , Lisp , Haskell , Perl, and various platforms support it very well.

The data is structured in XML using an XML 1.0 DTD - a platform-independent, but rather bulky representation. The XML-packed data can now be sent to other programs and computers on the basis of HTTP , FTP , or other transport mechanisms. The receiving entity must also support WDDX in order to be able to translate the data into the desired native format. WDDX can also be used to perform serialization , e.g. B. in a file system or a database. Many applications use WDDX to send complex data to browsers , which can then be edited with JavaScript - this is essential when developing Ajax -based web applications.

WDDX was originally written in 1998 by Simeon Simeonov of Allaire Corporation for the ColdFusion server environment and later published as open source.

WDDX and XML-RPC , both created in 1998, were the template for SOAP and web service . SOAP borrowed the envelope / header / body structure, as well as the transport / interaction neutrality from WDDX and the HTTP / RPC bindings from XML-RPC.

Example:

<wddxPacket version='1.0'>
  <header comment='PHP'/>
  <data>
    <struct>
      <var name='pi'>
        <number>3.1415926</number>
      </var>
      <var name='cities'>
        <array length='3'>
          <string>Austin</string>
          <string>Novato</string>
          <string>Seattle</string>
        </array>
      </var>
    </struct>
  </data>
</wddxPacket>

Web links

Individual evidence

  1. ^ Simeon Simeonov: WDDX: Distributed Data for the Web . ( Memento of the original from July 19, 2006 in the Internet Archive ) Info: The archive link was automatically inserted and not yet checked. Please check the original and archive link according to the instructions and then remove this notice. @1@ 2Template: Webachiv / IABot / www.infoloom.com
  2. from php.net/wddx