This example demonstrates how to call web services with parameters. The proxy method that Telerik RadAjax generates to call the service
has the same name as the webservice method and takes the same parameters plus the required two:
ServiceCompleteCallback and
ServiceErrorCallback (as illustrated below):
function CallService()
{
LibraryService.LookUp(ID_parameter, ServiceCompleteCallback, ServiceErrorCallback);
}
You should also have defined the bodies of the callback functions in your script block with the following signatures:
function ServiceCompleteCallback(ResponseAsJSON, ResponseAsXml, ResponseAsText)
{
// write your code here...
}
function ServiceErrorCallback(args)
{
// display a friendly error message...
}