Chapter 6. Accessing a CMIS Server Using Scripting Languages
So far we have seen how we can access a CMIS server via basic protocol bindings and from an OpenCMIS Java abstraction layer. Sometimes it is also useful to be able to abstract the CMIS interface even further and access the CMIS server using a scripting language such as JavaScript or Groovy.
So why would we want to do that? Well, when working on web application development, it is often very useful to be able to make AJAX calls directly from JavaScript code to CMS servers and get back JSON with repository data.
Scripting languages also make the coding operation a lot quicker in many cases; they abstract the application programming interface even further, making it easier to work with the interface.
In this chapter, we learn how to do the following:
Access a CMS server directly from the JavaScript code in the browser, and also see how that works if it is in a different domain
Use jQuery to make the AJAX calls to the CMS server more efficient...