Samples
Integration Framework samples are available starting from 2017.1 DevPack, in /DevPack/IFSamples folder. The samples can be opened in Visual Studio 2017.
Store Website
Description
This web application shows how LS One Integration Framework and Site Service could be used to drive an online shop for already existing customers (loyal clients).
In this sample, the access to LSOne system is provided by a single class: LSOneService and its accompanied interface ILSOneService, from /Providers folder. All calls to LSOne Site Service or Integration Framework are made through this class.
The needed settings to access LSOne are configured in web.config and loaded once, at first request, in the Settings singleton class from /Providers folder.
Technologies used
- .NET 4.7
- IIS Express
- ASP.NET MVC 5
- ASP.NET Identity 2
- Entity Framework 6
- jQuery 2.x
- Bootstrap with customized Simplex theme (see https://bootswatch.com/simplex/ and variables.less from ~/App_Data folder)
Prerequisites
Note!!! The LS One license needs to have the Integration framework active for any implementation or testing to work. Please contact the LS Retail Licensing department to activate the Integration framework on your license
- Microsoft Sql Server 2012 or later with LocalDB feature installed
- LS One 2017.1 dev pack (or later)
- LS One 2017.1 database with default demo data (or later)
- in Site Manager add a new terminal for Aurora Supermarket store (S0001)
- in Site Manager add a new user group (e.g Automation) with the following permissions:
View customers
View categories
View stores
View terminals
View retail items
Edit retail items
- in Site Manager add a new user (e.g. automation) and add it to the previously created user group
- in Site Manager add email to any customer addresses (e.g. to the Shipping address of Sue Smith customer)
- configure POS to run on the newly created terminal and do some sales for the edited customer
- in IF Store WebSite project edit the settings from web.config according to the comments in the file
Points of interest
The sample site can access LSOne Integration Framework services on net/tcp, http or https protocols by changing the following settings in web.config:
-
if.url.http.base
-
if.service.class
- StoreWebSite.Providers.LSOneNetTcpService - for accessing IF over net/tcp
- StoreWebSite.Providers.LSOneHttpService - for accesing IF over http/https
The LSOneNetTcpService class implements IFOneService interface and calls Integration Framework over net/tcp.
The LSOneHttpService class implements IFOneService interface and calls Integration Framework over http/https.