Free Sample
+ Collection

Alfresco 3 Web Services

Ugo Cei , Piergiorgio Lucidi

Build Alfresco applications using Web Services, WebScripts and CMIS
RRP $35.99
RRP $59.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849511520
Paperback436 pages

About This Book

  • Gain a comprehensive overview of the specifications of Web services
  • Implement the Alfresco specific Web Services
  • Get to grips with the Alfresco WebScripts and the Alfresco extensible RESTful API
  • Manipulate contents in Alfresco using different operations and APIs
  • Learn about the CMIS specification and its Alfresco implementation
  • Hands-on approach with examples built over the course of the book


Who This Book Is For

If you are a web developer who wants to build business applications on top of Alfresco, then this is the book for you. Basic understanding of XML, Web development concepts (HTTP, MVC) and Web Services is required.

Table of Contents

Chapter 1: Introducing the SOAP Web Services API
Web Services
Using Alfresco Web Services
Chapter 2: Creating and Modifying Content
The Content Manipulation Language (CML)
Performing operations on nodes
Searching the repository
Chapter 3: Collaboration and Administration
Creating collaborative content
Managing versioning explicitly
Managing locking explicitly
Classification and categories
Managing rules
Managing users
Chapter 4: A Complete Example
Setting up the project
The Bookshop model
Adding a book to the cart
Cart page
Managing reviews page
Changing user details
Chapter 5: Using the Alfresco Web Services from .NET
Setting up the project
Searching the repository
Performing operations
Managing child associations
Chapter 6: Introducing the Web Scripts Framework
A lightweight alternative to SOAP Web Services
REST concepts
Your first Web Script
The Model-View-Controller pattern
URL matching
Requesting a specific format
Configuring Web Scripts
Cache control
Chapter 7: Templating with FreeMarker
FreeMarker concepts
Variable interpolation
Using FreeMarker in Web Scripts
A simple example
Generating an Atom Categories Document
Chapter 8: Writing a Web Script Controller in JavaScript and Java
Providing a Web Script with a JavaScript controller
Root objects
General scripting techniques
Searching the repository
The ScriptNode API
A step-by-step example—posting reviews
Writing Web Scripts in Java
Chapter 9: Putting it All Together
The Atom Publishing Protocol
Listing books by category
Creating a new book
Updating an existing book
Deleting a book
Chapter 10: Overview of CMIS
A bit of history
Objectives of CMIS
The CMIS domain model
Protocol bindings
CMIS in action
Chapter 11: The CMIS AtomPub Binding
The CMIS AtomPub binding
Chapter 12: Developing a CMIS Client using Apache Chemistry
Introducing Apache Chemistry
Downloading and installing Chemistry
The modules of the Chemistry client API
Setting up a connection
Code samples
Chapter 13: The Web Services Binding
Getting at the WSDLs
Some necessary pieces: WS-Security and WS-I Basic Profile
Browsing the repository
Inspecting objects
Acting upon objects
Chapter 14: A Complete CMIS Client Application
CMISWiki—a CMIS-based wiki
Building and running CMISWiki
The user interface

What You Will Learn

  • Gain a comprehensive overview of the specifications of Web services
  • Learn how to manipulate contents in Alfresco using different operations and APIs
  • Build applications on top of Alfresco using Alfresco Web Services API
  • Extend the Alfresco RESTful API using WebScripts
  • Make your own different output renditions using FreeMarker
  • Explore the CMIS specification with all the details about the Alfresco implementation
  • Learn how to contact Alfresco with your client using one of the bindings of CMIS
  • Make your CMIS integration more standard using the Apache Chemistry project


In Detail

Alfresco 3 is the leading open source enterprise content management system that offers powerful features for interacting with the content in its repository from outside the system. These include the support for the Content Management Interoperability Services (CMIS) implementation, reusable web scripts, and a Web Services API.

This is the first book to show you how to use Web Services in Alfresco. Packed with examples, you'll learn how to build applications using Alfresco remote APIs based on SOAP and REST. You'll see how to use different APIs and bindings such as WebServices, WebScripts, and CMIS.

Alfresco 3 Web Services starts off by showing you the services exposed by the Alfresco Web Services API, and how the API fits into the Alfresco software architecture.You learn to develop your application firstly by setting up and testing your Java development environment using the Alfresco SDK in Eclipse IDE and secondly by associating the Alfresco source code and Javadocs in Eclipse.

With the help of real world practical examples, you learn how to do things like create, sort, and call Web Scripts, and invoke remote calls to Alfresco repository. To get the most from the Web Services API, you need to know about the basics of the Content Manipulation Language (CML), and the book takes you through this.

Examples such as the bookshop application show you how to sign in, change user sessions, get, remove and change public and private associated contents, manage a cart for your e-commerce application, and so on.Next, by implementing a Microsoft .NET application using the Alfresco Web Services API, you see how to perform operations against the repository from your .NET application.The book provides you with REST and SOAP concepts, their comparison, basics of the FreeMarker language, Atom Publishing Protocol, JavaScript controllers, and the Apache Chemistry project.

By the end of this book, you will be able to put together your knowledge about CMIS and the Apache Chemistry toolkit to develop a complete working application that uses Alfresco, via CMIS, as a back-end storage. Last but not the least, this book also covers the WebServices security profiles— the best practices for Web Services to promote better interoperability.


Read More

Recommended for You