And I forgot to add: and as Christoph wrote, it is important to write
the backend part with hooks and plug-ins, so that everybody can reuse
their previous components. Maybe we can even agree on common interfaces
in php and java. In seperate config files, users could then specify
callbacks to legacy code which does the authentication, configuration,
etc. Does this make sense?
Christian Boulanger schrieb:
Hi all,
this is exciting. I agree with Ben. Let's define a protocol
(preferrably using JSON-RPC) and then let people create backends. How
great it will be if I can reuse the XML GUIs for several backends...
I would propose that a server should do the following:
- accept GET and POST requests,
- authenticate the user (with a standard user/password parameter),
- do basic security stuff (for example, prevent code injection in
parameters),
- convert JSON data in the parameters into native data structures
- call an named object and object method (for example,
"bibliography.getRowsBySql") - this could be a java object or a php
object - objects could also be template files which return HTML
- return data, indicating the mimegtype of the data (for example,
text/json, text/javascript, text/plain, text/html, x-application/xul,
text/xml, or what have you)
This requires a data binding class on the client side. Until the
QxTransport Classes are ready, there is dojo.io.bind() from the
dojotoolkit. This class would call
"http://www.server.org/qxserver.php?_procedure=foo.bar&arg1=['blub','blah']&arg2={first:'nee',second:34}&_dataformat=json"
or something like this. Are there specifications by JSON-RPC? There is
an implementation in the dojotoolkit.
Concerning the name: what about simply "QxServer"? I would, however,
always have dojo built in, too.
An XML - Format has already been defined by QxBuilder, I propose to
just take it over.
Also, the whole thing should be able to generate documentation with
doxygen.
Christian
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel