Web Config Settings

In the Web config of the application that will consume the services you need to configure the following items:

  • WWP_ServiceLayer_Protocol: protocol of the site where the services are exposed.
  • WWP_ServiceLayer_BaseUrl: base URL of the site where the services are exposed.
  • WWP_ServiceLayer_Port: port of the site where the services are exposed.
  • WWP_ServiceLayer_Host: host of the site where the services are exposed.
  • WWP_ServiceLayer_IsWebLayer: needed with 'true' value to specify that this is the Web layer that will consume the services

Also, there is a configuration that specifies whether GAM is in the service layer or not. If it is not in the Service layer, it will access all the APIs of GAM directly, without the need for the services:

  • WWP_IsGAMInServiceLayer

For example, if you have the application deployed in two sites, one for the Frontend and the other for exposing the services, in the Frontend this property should be true and in the services false.

Example of configurations in a .Net Framework Application

File to edit: Web.config

DataAccessLayer04

  <add key="WWP_ServiceLayer_Protocol" value="http" />
  <add key="WWP_ServiceLayer_BaseUrl" value="NETSQLServer" />
  <add key="WWP_ServiceLayer_Port" value="80" />
  <add key="WWP_ServiceLayer_Host" value="localhost" />
  <add key="WWP_ServiceLayer_IsWebLayer" value="true" />
  <add key="WWP_IsGAMInServiceLayer" value="true" />

Example of configurations in a .Net (NetCore) Application

File to edit: appsettings.json

DataAccessLayer05

    "WWP_ServiceLayer_Protocol": "http",
    "WWP_ServiceLayer_BaseUrl": "KBNameNetSQLServer",
    "WWP_ServiceLayer_Port": "8082",
    "WWP_ServiceLayer_Host": "localhost",
    "WWP_ServiceLayer_IsWebLayer": "true",
    "WWP_IsGAMInServiceLayer": "true",