how to call an external webservice from webscript

cancel
Showing results for 
Search instead for 
Did you mean: 
pulaparty
Member II

how to call an external webservice from webscript

Hi:

We are trying to call an external webserivce from Alfresco webscript. The context here is that when a document is added to a folder in Alfresco, we want an external application to receive the event and perform necessary action at its end.

1 Reply
calvo
Senior Member

Re: how to call an external webservice from webscript

Hi,

For example, in the following file "{alfresco}\tomcat\webapps\share\components\geographic\google-map.js" there is a call to Google Maps services.

I don't know if this is exactly what you need, but it could be useful.

// Async load the Google Maps API. Need to do this, as it breaks the YUI Loader otherwise
var script = document.createElement("script");
script.type = "text/javascript";
script.src = window.location.protocol + "//maps.google.com/maps/api/js?sensor=false&callback=Alfresco.component.GoogleMap.Callback";
document.body.appendChild(script);

Regards,

clv