Book Image

Learning Alfresco Web Scripts

By : Ramesh Chauhan
Book Image

Learning Alfresco Web Scripts

By: Ramesh Chauhan

Overview of this book

If you are an Alfresco developer who has no experience with web scripts and you want to start developing Alfresco web scripts, then this book is definitely for you.
Table of Contents (12 chapters)
11
Index

Understanding the web script URI


It is important to understand the web script URI. The way the web script URI can be represented in a generic form is http[s]://<host>:<port>/[<contextPath>/]/<servicePath>[/<scriptPath>][?<scriptArgs>]

The terms used in the web script URI are explained as follows:

  • http[s]: This is the protocol to invoke the web script. This could be either http or https.

  • host: This is the name or address of the server where the web script is deployed.

  • port: This is the port where the web script is exposed on the server hosting the web scripts.

  • contextPath: This is the path where the application is deployed to. For data web scripts, this would generally be /alfresco.

  • servicePath: This is the path where the web script service is mapped with. Generally, this would be /service.

  • scriptPath: This is the path to the web script as defined in the web script descriptor document *.desc.xml under the <url> tag.

  • scriptArgs: These are the arguments...