November 17, 2001 - Calling Web Services with callService | WebReference

November 17, 2001 - Calling Web Services with callService

Yehuda Shiran November 17, 2001
Calling Web Services with CallService
Tips: November 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

In order to communicate with Web Services, you need to call the callService() method. The callService() method has an optional first parameter of a callback function, followed by the WebService's method name and its parameter values. Here is the syntax:

iCallID = id.FriendlyName.callService([CallbackHandler,] "MethodName",  
  Param1, Param2, ...);
For example:

webServiceCallerBody.echo.callService(Handler, "echoString", 
  "Asynchronous Call");
The callback handler function processes the result sent by the Web service. If the callback handler function is not specified, the event handler of the onresult event is used.