...
3. execution script (name.method.js) http://wiki.alfresco.com/wiki/JavaScript_API
*Debug webscript:
*1. set log4j.logger.org.alfresco.repo.jscript to DEBUG in log4j.properties
...
To get details on a webscript:
http://localhost:8180/alfresco/service/script/\[path to script\]/name.method Wiki Markup
For example: http://localhost:8180/alfresco/service/script/org/alfresco/repository/login.get\\
Where to deploy the webscript:
...
tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts or \tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension\templates\webscripts
The script config xml is at:
tomcat\webapps\alfresco\WEB-INF\classes\alfresco\script-services-context.xml
Source code for java classes exposed by webscripts are at:
alfresco-2.1.1-src\root\projects\repository\source\java\org\alfresco\repo\jscript
To invoke a script with a ticket:
append "alf_ticket=xxxxx" at the end of the webscript url
Expose your own java classes for use in webscripts:
use the examples in
alfresco-2.1.1-src\root\projects\repository\source\java\org\alfresco\repo\jscript
put the jar file in tomcat\webapps\alfresco\WEB-INF\lib
define the *context.xml file in tomcat\shared\classes\alfresco\extension (use the model in tomcat\webapps\alfresco\WEB-INF\classes\alfresco\script-services-context.xml)