Deploying the web script
The web script components are now ready. In order to make them work together, these need to be deployed now. In your Alfresco installed directory, perform the following steps:
Create a folder named
exampleat the locationtomcat\shared\classes\alfresco\extension\templates\webscripts.Put
contentlocation.get.desc.xml,contentlocation.get.json.ftl, andcontentlocation.get.xml.ftlat the locationtomcat\shared\classes\alfresco\extension\templates\webscripts\example.Put
custom-example-webscripts-context.xmlat the locationtomcat\shared\classes\alfresco\extension.Create folders
com|example|contentat the locationtomcat\webapps\alfresco\WEB-INF\classes.Put the compiled Java class
ContentLocationWebscript.classat the locationtomcat\webapps\alfresco\WEB-INF\classes\com\example\content.Restart the server.
Registering the web script
As we just restarted the server, on a server startup, the web script gets registered. Now in order to confirm this, go to the URL http://localhost...