Replication for LS Central in SaaS

In this article

Web Services Setup

Web Replication 1.0 Setup

When LS Central is running in SaaS and Commerce Service is set up with Use WS Mode, replication will mostly use ODataRequest Web Service to get the data but also uses the Web Sync module in LS Central to get data from some tables.

Commerce Service will not connect directly to the LS Central database, all data pulling will be done via LS Central Web Service.

In Appsettings.config, or for multi-tenant mode via Admin Portal, BOConnection.AssemblyName will be set to NavWS.dll (Use WS Mode sets this value):

<add key="BOConnection.AssemblyName" value="LSOmni.DataAccess.BOConnection.NavWS.dll" />

Only BOConnection.Nav.Url/QryUrl will be used to communicate with LS Central, SqlConnectionString.Nav will not be used.

  1. Open Web Table Groups, and add an entry for the Commerce Application that will be in use.
    • ECOM - ECommerce web site, like Magento
    • INV - Mobile Inventory App
    • MPOS - Mobile POS App.

  1. Open Web Application Types, add an Application Type for each Table group that was created.

When replication is started, the app will register itself with the Web Sync module, and you can see these registrations under Web Application Register. Also, status of each replication can been seen there.

Mobile POS & Mobile Inventory Apps create their own GUID to register with the Web Sync module when the app starts for first time. ECOM can send the GUID with request or it can be set in the TenantConfig table in the Commerce Database or Admin Portal.

  • Generate a new Guid, and enter the NavAppId value:

Web Services Setup

Check that these 3 Codeunits are active and with correct Service Name. Click on URL the found in SOAP URL field to test if they reply without error.

Web Replication 1.0 Setup

Web Sync uses these functions in Web Replication version 1.