...
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)