I would like to know how to call a web service from a script? Or how to access an external database to insert a record, from a script? My alfresco version is community 2.1.
Not entirely sure about 2.1 since its "before my time". However if you have a Java backed script it can do anything, including using JDBC, a http client or a web service client.