MethodInvoke

 

Dovico.TrackITWSAPI.API.MethodInvoke(System.String,System.String,Dovico.TrackITAPI.SessionToken)

 

 

Function Overview:

Invokes most standard web methods that are not exposed directly through web services API. You will typically use this function for all your actions such as EmployeeSave, TransSave, ActualExpenseDelete etc... Call this method with the method name of the call, the xml you need to pass to it and a valid session token. It is important to note that all calls involving database inserts/updates/deletes run in a transacted mode, so should an error occur a rollback will take place.

 

 

Parameter List:

sMethodName - string - Method name to invoke. This naming convention is Class Name - 'C' for example, CEmployee would be Employee and then the name of the method. (CEmployee.Save would be EmployeeSave)

sXml - string - xml to pass to the method for more information on the format of the xml see the in-process API

stToken - SessionToken - Session information needed to process the method call

 

Returns

A string of xml that varies based on the function executed.

 

Example:

Examples of how to call this method are available through the documentation.