User Tools

Site Tools


Plugin installed incorrectly. Rename plugin directory 'swiftmail.backup' to 'swiftmail'.
en:software:tim:webservices

This is an old revision of the document!


Calling webservices via Javascript

Description

Webservices can be called per script and are used to read out information, set data, assign tasks, etc.


Webservice Name

A list of webservice name kan be seen in Firebug. per selected webservice name you can find the available methods.

Webservice Method

After selecting a name you can find the methods. Inthis example the IdentityManager is used



Parameter

Via a click on the method it is possible to see which parameters need to be given.


Exmaple

In this example the fucntion getuserByName is called in the IdentityManager. This method calls a callback method (userCallback) in the script. THe callback gets the found user. In this callback the information of the received user can be worked with.

var userCallback=function(userGot){
    //do sth
}
webService.IdentityManager.getUserByName("tim.support", userCallback);

en/software/tim/webservices.1522242619.txt.gz · Last modified: 2021/07/01 09:55 (external edit)