On 11/20/06, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:
I checked in the initial structure of a REST extension under
cpp/sca/runtime/extensions/rest, revision r477110.
The idea is to add support for <interface.rest> and <binding.rest> on
services and references and implement a RESTFul pattern (using the HTTP
Post/Get/Put/Delete verbs to implement Create/Retrieve/Update/Delete
operations on resources) as well as a simple service invocation
mechanism using HTTP Get and Post.
I have updated the Linux build files, added a configure
--enable-restbinding option and the necessary Makefile.am files.
The reference binding requires Libcurl (I tried 7.15.5) and CURL_LIB and
CURL_INCLUDE environment variables pointing to its lib and include
directories.
The service binding requires Apache httpd (2.2.x) and HTTPD_LIB and
HTTPD_INCLUDE environment variables.
The SCDL model classes should be roughly Ok but the ServiceProxy and
ServiceWrapper classes are under construction and only useful to verify
that the extension can be built.
I just committed the build files & a few minor changes to get the
extension building on Windows - you will need to set the environment
variables LIBCURL_HOME and HTTPD_HOME to point to the appropriate
places (guess!)
Haven't yet got the sample going - that's the next job.
Cheers
Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]