SXI Forum

A place to collect usefull tips, tricks and implementation strategies.

You are not logged in.

#1 12-01-2019 08:33:35

StephanB
Member
Registered: 21-11-2018
Posts: 39

Setup licence About To Expire Notification to a central XLayer Server

Setup the licence About To Expire Notification to a central XLayer server to process the notification.

Add the following style sheet to folder: X:\SXI\XPress\Dispatch\stylesheet

LicAboutToExpireChangeDest.xsl

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.sxi.co.za/XMLSchema"  xmlns:sxi="http://www.sxi.co.za/XMLSchema">
    <xsl:output indent="yes"/>
    <xsl:template match="@*|node()">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
    </xsl:template>

    <xsl:template match="//sxi:Destination">
        <xsl:element name="{local-name()}">
            <!-- Replace the IP below to the central XLayer Notification Server IP -->
            <xsl:value-of select="'192.168.50.71'"/>
        </xsl:element>
    </xsl:template>
</xsl:stylesheet>

Add the following to the Dispatch Initialisation.xml in the ContentTransformations

<!-- This will transform the Notification Doc using the LicAboutToExpireChangeDest.xsl style sheet to send the notification for licence About To Expire to the central XLayer Notification Server IP -->
        <Transformation sendOriginal="no" stylesheetPath="X:\SXI\XPress\Dispatch\stylesheet\LicAboutToExpireChangeDest.xsl">
            <Condition xpath="/sxi:XNotification/sxi:NotificationGroup/@name" value="LicAboutToExpire"/>
        </Transformation>

When done restart the XPressDispatch service.

Last edited by StephanB (17-08-2019 10:19:50)

Offline

Board footer

Powered by FluxBB