cancel
Showing results for 
Search instead for 
Did you mean: 

Calling external webservice from Alfresco

markhayen
Champ in-the-making
Champ in-the-making
Hi all,

I am looking for a way to call an external webservice from Alfresco.
We are integrating Alfresco into our product and therefore need Alfresco to send information to our application.

Can this be done with the JavaScript possibilities in Alfresco?
This javascript could then be used by a rule defined on a space.

Thanks alot

Mark
1 REPLY 1

kevinr
Star Contributor
Star Contributor
You can't expose Java classes from Alfresco Rhino JavaScript integration - we have purposely disabled this feature - it is a huge potential security hole! Any user can execute a script, and then could then execute Java on the server - which could potentially do anything…! :shock: So it has been disabled.

The correct way to call Java from JavaScript is to create a Repository action class and then call that using the 'actions' object from JavaScript. Since only a server admin can add new JARs to the repo this is a safe route.

Thanks,

Kevin