Local Service
Local Service is a service that runs in the browser side, and is installed as a Windows Service in browser machine.
Introduction
- Executing Datacap profiles
- Rendering images
- Building thumbnail
Local Service provides REST interface. Local Profile and Local Rendering features depend on this feature to execute rule or render image. It supports most of the Datacap actions and custom actions, but does not include OCR, ICR, and DocumentAnalytics actions.
- HTTPS configuration is not supported by default.
- Do not install it on the same machine with other Datacap components, for example, TaskMaster server, and RuleRunner, Datacap Desktop, as the Local Service might modify the datacap.xml during applications sync up.
Installation
The installation package of Local Service is deployed by Datacap installation, and you can find it in your Datacap folder. For example, C:\Datacap\tmweb.java\LocalTM.
Local Service has some prerequisites, which are included in the ISSetupPrerequisites folder of the installation package, and the installer tries to install them if they are not available in the target machine.
It is not mandatory to deploy the ISSetupPrerequisites folder, as long as you are sure that those prerequisites have already been installed on the target machine.
URL
http://127.0.0.1:51224/service
If needed, the port can be changed using the baseAddress parameter of the LocalTMService.exe.config setting file in your Datacap folder of Local Service machine. For example C:\datacap\LocalTM\ LocalTMService.exe.config
Log files
- aTM.log
logOverwrite
in the config file is used to specify if there is log overriding. - localtm.x.log
It creates another log file after 500K lines in current log file, and start to override existing file after total 10 log files. For example, localtm.0.log->localtm.1.log,->...,->localtm.9.log->localtm.0.log
- rrs log in temp scan batch folder
Log settings
You can configure log settings using the parameters of LocalTMService.exe.config setting file in your Datacap folder of Local Service machine. For example, C:\datacap\LocalTM\ LocalTMService.exe.config.
- logSeverity: Severity of the log
- logOverwrite: Overwrite the log file
- logFlushBuffer: If Yes, then flush buffer for each line in the log. It might impact the performance
- logEnable: Enable or Disable log
- logPath: Log file path
- logTime: Write the time to the log
- logAtmEnable: Enable aTM log