wmJNI.c
invokeWmService


jint
invokeWmService(
      const char *ifc,
      const char *svc,
      WmRecord *session,
      WmRecord *input,
      WmRecord *output)
Invokes services. Simply give the folder name, service name and synthesize the input record. For backward compatibility, session record is used.

Provides a thin wrapper over the Java API Service.doInvoke(). To better understand the function, please consult that API directly.

Parameters:
const char *ifc - Name of the folder.
const char *svc - Name of the Service.
WmRecord *session - Session record, used for backward compatibility.
WmRecord *input - Service input record.
WmRecord *output - Service output record.
Returns:
jint - The invoke service status. If invoke success return 1 otherwise return 0.