BEC Windows Service
In this article
BEC Windows Service is a Windows service written in C#/.Net that uses WCF (Windows Communication Foundation) to communicate with Business Central and a Channel Management System via web services.
There is no business logic in this service, but it provides the control of creating complex web service endpoints as specified by the Channel Management System. Its main functionality is to map data passed between the external Channel Management System and the BECWebService Business Central web service and to run its own internal job scheduler.
- All business logic is written in AL within LS Central.
- All configuration and database tables are stored in an LS Central database.
- All logging and process statuses are stored in an LS Central database.
Functional overview
BEC runs as a Windows Service (LSBECWinService.exe):
- It reads configuration/job scheduler values from LS Central via web services that are used to load the correct assemblies and connect to the Channel Management Systems.
- It has an internal job scheduler based on Cron.
- It reads availability, rate, and restriction data from LS Central via web services.
- It creates, updates, and deletes reservations in LS Central via web services.
LS Central
- Stores all configuration values, such as connection strings and scheduler values.
- Provides web methods for all the functionality needed by BEC.
- All the business logic is in LS Central, so the LS Central web services return processed data that is sent unchanged to the Channel Management Systems or receive unprocessed data from Channel Management Systems that are then mapped and processed in LS Central.
All business logic is in LS Central and all configuration values are stored in tables within LS Central for hotels.