wcService.getServiceById (serviceId)

The wcService.getServiceById helper function is for getting a handle on the service object that was declared by using the wcService.declare function. Once the service object is obtained, you can update any information in the service object such as URL, formId, or others. This function is helpful when you find a service and update its parameters before you invoke it.

Example

service = wcService.getServiceById('AjaxCouponsAdd');

Parameters

serviceId
(String) The service ID.