The FacilityTaskExchaneApi is the link between the SonWIn Installation Management Electricity Service and the PartnerPortal.
It serves as the accesspoint for the SonWIn application to send data to the portal.
The service is hosted in Azure and transfers incomming data to teh integration api, which handles the further communication with the backend.
In order to configure the service, use the guide for viewing and editing a file (Found in this document) and open the file named Config.Json
![]()
In the left view you can see the content of the file and edit it if you need to do so.
BE AWARE THAT THE APPLICATION SAVES YOUR CHANGES AUTOMATICLY, DONT CHANGE ANYTHING WITHOUT BEING SURE.
The configuration file have the following elements :
| Key | Values | Description | Comment |
|---|---|---|---|
| LogType | FILE | Type of logging | |
| LogFileMaxDays | n | The number of days that the log file lives before it is archived by renaming it, after wich a new log file is created. | |
| GDPRLogFileMaxDays | n | Number of days before log files are deleted | |
| FullXmlLog | TRUE/FALSE | If true, then logs the full xml reveived to the log file. (Helpfull for debugging but takes a log of space in the log file) | |
| InputValidation | TRUE/FALSE | Validate the input comming from SonWin | |
| ApiCommunicationType | PRODUCTION/DEBUG | Send data to the integration api for production. (Adding to the database etc, DEBUG is only used when developing) | |
| ApiBaseAdress | URL | The adresse of the endpoint to communicate to (Integration Api) | |
| ApiExceptionHandling | TRUE/FALSE | If true then the service will throw an exception to the client if anything goes wrong, causing the client to try to resend the message. | |
| IntegrationApiToken | String token | This is the token that have to be used when communicating to the integration api. The service will not function without it. |
After having made a change to the configuration, it will be a good idea to restart the service.
Restarting the service is done by clicking the Menu point Overview and then clicking the menu point in the ribbon named Restart
A restart normally takes app 10 seconds MAX.
If logging have been enabled in the configuration file, the service will log to a file located in the hosting environment named FacilityTaskExchangeApi.Log.
To view the logfile, use the App Service Editor and click the file in teh root view: ![]()
In order to view and edit files on the server, one can use the App Service Editor.
It is found in the following way:
To view the content of a file, please navigate to it by following this procedure:

For a client machine to connect to, and communicate with teh service, the sending machine public ip adress should be added to the whiletist, otherwise it will be rejected.
To add a new Ip adress to the service whitelist follow this procedure:

A restart should not be nessesary but it never killed anyone to do so.
The services have different names regarding what environment they are hosted in.
Here is a list of the names:
| Hosting | Service name |
|---|---|
| PROD | FacilityTaskExchangeApiPROD |
| TEST | FacilityTaskExchangeApiTEST |
| STAGING | FacilityTaskExchangeApiSTAG |
| DEV | FacilityTaskExchangeApiDEV |