[development] SoC: Multi-site administration through rich XUL
danielc at analysisandsolutions.com
Wed May 10 00:50:58 UTC 2006
On Tue, May 02, 2006 at 01:09:41PM +0100, Ben Francis wrote:
> My current favourite proposed SoC project is: Multi-site administration
> through rich XUL client (http://drupal.org/node/60507)
> Would an appropriate solution to this be to write a module with
> functions for administering multiple sites and then write a
> SOAP/REST/XML-RPC API which is called by the XULRunner client?
Pardon my piping in so late on this very interesting idea.
I have now been working for a year on an application that uses XUL on the
front end and PHP on the back.
The simplest way to communicate is have the front end use HttpRequest to
send a POST that looks something like this when it arrives in PHP:
Then extract and decode it into a PHP array (we're using the JSON
implementation proposed for PEAR):
$request = $json->decode($_POST['json']);
You'll now have an array called $request with the function name and
parameters in it you can pass into the backend system.
For responses, we create PHP arrays that we then throw at an output
function that basically does this:
echo "var $name = " . $json->encode($data) . ";\n";
Couldn't be simpler. This is WAY WAY WAY easier than XML_RPC, SOAP, etc.
I hope your proposal gets accepted.
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
More information about the development