SWX: SWF Data Format

Icon

SWX is the native data format for Adobe Flash. This blog is about all things SWX, SWX RPC, SWX PHP and the SWX APIs (Flickr, Twitter, etc.)

SWX RPC

SWX RPC is a remote procedure call protocol encoded in SWX format. You use it to call methods on server-side classes (called services in SWX RPC) and get the results returned to you in SWX format.

SWX RPC is open. I am in the process of writing an Internet Draft (I-D) for SWX RPC which I hope will become an informational RFC.

SWX RCP is stateless, lightweight, and uses HTTP as the transfer protocol.

A typical SWX RPC call involves parameters sent from Flash to the SWX RPC endpoint (gateway) in JSON format. These consist of serviceClass, method, and args parameters that define the method on the service class that you want to call on the back-end and the arguments that you want to send to that method. The resulting data is returned to Flash in the result property.

SWX PHP adheres to SWX’s core philosophy of Systemwide Simplicity.

7 Responses

  1. [...] is so cool: Jed Hurt has released Alpha 0.1 of SWX Ruby, the Ruby implementation of SWX RPC for Ruby on [...]

  2. [...] Talk About SWX, Baby! (which is listed as Rediscovering Fun in the printed program) on SWX, SWX RPC and SWX PHP (with a sneak peak at Jed Hurt’s new SWX Ruby [...]

  3. [...] Verweirder has released a new tutorial on setting up and using CakeSWXPHP, the SWX RPC implementation for the CakePHP framework that is based on SWX [...]

  4. [...] Hurt has updated SWX Ruby, the SWX RPC implementation in Ruby (currently for Ruby on Rails) to Alpha 0.1.1. He has also recorded a new [...]

  5. [...] really excited! SWXml is a SWX API that provides a generic XML to SWX parser that can be used over SWX RPC. You can see examples, read the documentation, and download SWXml from the see the SWXml home [...]

  6. [...] site it uses SWX RPC, with a SWX PHP [...]