Skip to content

sjoerdsch/GDSN-Create-CIS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create GDSN CIS messages

Program to create GDSN Catalogue Item Subscription (CIS) messages for a data recipient based on a list of supplier GLNS.

Background

The CIS message is used by a data recipient create a subscription for the data of a certain supplier. The data recipient will receive data if a publication from the supplier is in place.

More information about Global Data Synchronisation Network (GDSN): https://www.gs1.org/services/gdsn

Usage

  1. Create a csv file in the input directory with the structure:

The input file has all possible parameters in it.

gln_dr,gln_ds,gpc,gtin,tm

gln_dr = gln data recipient

gln_ds = gln data source

gpc = global product classification

gtin = global trade item number

tm = target market

gln_dr and tm are mandatory

values not used should be 0 (zero)

combination of gpc and gtin is not allowed

see ./input/test_file.csv for examples

  1. Change (if needed) the data_pool_gln in the source code

  2. Run the program from the command prompt with the name of the csv-file as parameter

create_cis.py test_file

  1. In the directory output a new directory will be created with the same name as the csv file. In the created directory there a one or more batches with CIS messages. The batchsize can be changed in the source code.

  2. Upload the xml files via FTP or AS2 to your GDSN data pool.

  3. Messages will be processed by the datapool.

  4. If a publication exits data will be received.

Releases

No releases published

Packages

No packages published

Languages