This is the documentation for the console version of File Gateway. The old version is no longer supported.
Documentation for the new version of File Gateway is located here.

Added the ability to import the draft messages to the Web-client.

Settings

To configure downloading function you need:

  1. paste %LOCALAPPDATA% into the Windows Explorer and press Enter on the keyboard;
  2. go to NSD.FileGateway the installation folder;
  3. open the svc.config file;
  4. change the required parameters in the svc.config file. Valid options are presented in table 1.

Содержание страницы:

Table 1 – File Gateway parameters for drafts import to the Web-client

XPath-expression

Description

/fileGateway/wsl/@lkrEndpoint

Web-client Url:

/fileGateway/lkrChannels/channel/@username

User name in the Web-client

/fileGateway/lkrChannels/channel/@password

Password in the Web-client

/fileGateway/lkrChannels/channel/@clientCertificateSerialNumberSerial number of the certificate used to access the WSL-service of the repository
/fileGateway/lkrChannels/channel/@validataProfileCertificates storage profiles. The "My" value is used for default profile
/fileGateway/lkrChannels/channel/@cryptographyСryptography RSA or GOST
/fileGateway/lkrChannels/channel/@asIs

Import mode.

If the attribute is absent or "true" value is specified, the drafts will be imported with saving messageId and correlationId

If the "false" value is specified, during the drafts import the messageId and correlationId will be deleted. The IDs can be filled manually on the editing form in the Web-client, or automatically when sending the message to the repository

The setting is available in the File gateway v.7.0.67. In the versions < 7.0.67 during the drafts import the messageId and correlationId will be deleted.

/fileGateway/lkrChannels/channel/outbox/@pathThe path to the Sent mail folder
/fileGateway/lkrChannels/channel/sent/@path

The path to the folder for successfully sent drafts. Drafts, which could not be sent, will remain in the Outbox folder

The setting is available in the File gateway v.7.0.67. In the versions < 7.0.67 the successfully sent drafts will not be moved.

/fileGateway/lkrChannels/channel/inbox/@path

The path to the inbox folder. The folder is not used, but the path must be filled.

/fileGateway/lkrChannels/channel/errors/@pathThe path to the errors folder. The folder is not used, but the path must be filled. 

Below is the example of settings:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <nrd>
        <fileGateway>   
            <wsl endpoint="https://rsa.nsd.ru/onyxpl/WslService"
                 lkrEndpoint="http://repository1.itglobal.ru/lkr/"
                 httpsMode="Auto">
                ...
            </wsl>        
            ...           
            <channels>               
                ...               
            </channels>
      		<lkrChannels>
        		<channel enabled="true" 
                 		 username="" 
                 		 password="" 
                 		 clientCertificateSerialNumber="" 
                 		 validataProfile="My" 
                 		 cryptography="GOST" 
                 		 asIs="true">
            		<outbox path="c:\transfersvc\lkr\outbox" 
                   		 monitoringThreshold="0:00:05" />
           		 	<sent path="c:\transfersvc\lkr\sent" />
					<inbox path="c:\transfersvc\lkr\inbox" />
                    <errors path="c:\transfersvc\lkr\errors" />
        		</channel>  
      		</lkrChannels>
        </fileGateway>
    </nrd>
</configuration>

The drafts import does not display in the File Gateway web-interface.

General principle of downloading the draft messages

To import the draft messages to the Web-client you need to copy a message to an *.xml in the outgoing messages folder. In addition:

  • If the message includes an attachment, the attachment file must also be placed in the same folder. An XML message file should contain a link to the attachment file in accordance with the FpML format;
  • the message should have a correct <correlationId /> element. Format of attachments – PDF.

The messages from the Outbox folder will be displayed in the Drafts form in the Web-client.

  • No labels