Rich Christiansen wrote:
Haha! I love the self-post referencing. :) Just a question now that
you've got my curiosity - what does your app do? I'm interested to hear
how it has OL and bash front-ends...
-Rich
Basically OpenLaszlo is a front-end to our web app that uses Agavi
(http://www.agavi.org/) framework. Agavi's architecture is beautiful,
in that there is true separation between the data, UI, and business
logic concerns.
I simply let Agavi output XML data, then feed it to OpenLaszlo as a
dataset. Because Agavi only outputs XML, other clients can work on that
data as well. Bourne shell or Perl can easily access it.
The simplicity is amazing. OpenLaszlo + Agavi rocks. =)
[ simon.cpu ]
Simon Cornelius P. Umacob wrote:
Rich, Henry,
Thanks for your reply. It seems that OpenLaszlo supports PUT and
DELETE after all. I forgot that we could do setQueryType() on
datasets. To my surprise, Google pointed me to my own post that I
made a few months back. =)
REST is cool. I'm now able to have both OpenLaszlo and Bourne shell
script front-ends, all with the same back-end code.
[ simon.cpu ]
Rich Christiansen wrote:
Hi Simon,
I have successfully implemented a REST architecture in PHP by using
OpenLaszlo with Drupal. I had to write a REST server for the
'service' (is that what it's called?) module. I discovered by my own
frustration that Flash doesn't support all HTTP verbs, so I believe I
just defaulted to GET in all instances. If your service is only
going to be accessed by the OL app, however, that doesn't matter too
much - as I recall, the real power of the verbs is derived from how
modern web browsers make, cache, and ask for permission to do the
requests. If your service is only going to be accessed by the OL
app, then there should be no problem using GET (and/or POST) in all
instances.
In addition to the workarounds already posted, you technically could
do the REST integration via JS in the host browser, using the
interface between the browser and the OL app for communication.
However, having done a fair amount of OL/browser interfacing myself,
I recommend against this option.
-Rich
Simon Cornelius P. Umacob wrote:
Hello,
I'm a bit curious, has anyone of you here tried implementing REST
architecture with PHP and OpenLaszlo? I'm curious, did you use HTTP
PUT for updating the data and HTTP DELETE for deleting the data? Do
the major browsers support them?
In an ideal world, all four HTTP verbs should probably be used;
however, in actual practice, I have this strange feeling that I'm
limited to GET and POST only...
Thanks,
[ simon.cpu ]
--
And /usr/games/fortune futurama says:
Hermes: Dating your ex, Fry? Have you lost all self-respect?
Fry: All what?