Review
Attention! This article, as well as this announcement, are automatically translated from Russian.
The Net.Leksi.Edifact library is designed to convert messages from the EDIFACT format to XML and vice versa. The library also contains a number of utilities for creating a working environment.
All classes are contained in the Net.Leksi.Edifact
namespace.
The following functionality is available.
- EdifactDownloaderCLI: preparation of a command line application for downloading specifications from the site UNECE with converting them into a set of XML schemas, which are subsequently used as a grammar, and to check data and structure restrictions for the translator between formats.
- EdifactMessageCustomizerCLI: preparation of a command line application for editing the specification of a standard message (customization) for the needs of an agreed exchange between specific parties. This includes reducing the set of segments used and changing data restrictions.
- EdifactMessageVisualizerCLI: template command line application for visualizing the specification of a standard or abbreviated message in the form of a tree of segments and groups of segments.
-
EdifactParser: translation of the incoming flow of the exchange session (interchange) into events:
- start of the session;
- beginning of the functional group (if any);
- the beginning of the message, the handler must provide a stream for writing the XML document received from the message;
- end of message;
- end of the functional group (if any);
- end of the session.
-
EdifactBuilder: broadcasting calls of the corresponding methods to the specified outgoing stream of the exchange session:
- start of the session;
- beginning of the functional group (if any);
- message transmission, the sender provides a stream to read the XML document for translation into the message;
- end of the functional group (if any);
- end of the session.
- EdifactParserCLI: template command line application for translating the exchange file into XML files.
In addition to the library, the working environment includes a directory of XML schemas containing schemas obtained from downloaded specifications, as well as custom schemas. More details...
Customization is carried out using a script, which is an XML schema of a special structure. More...
The structure of XML documents is described Here.
- EdifactDownloaderCLI - preparation of a command line application for downloading specifications from the site UNECE with their conversion into a set of XML schemas, which are subsequently used as a grammar, and to check data and structure restrictions for the translator between formats.
- EdifactMessageCustomizerCLI - a template class for a command line application for customization.
- Customization script structure
- EdifactMessageVisualizerCLI - a template class for a command line application for visualizing the message tree at the level of segments and segment groups.
- EdifactParserOptions - class of translator options from EDIFACT to XML.
- EdifactParser - translator class from EDIFACT to XML.
- EdifactParserCLI - a template class for a command line application for translation from EDIFACT to XML.
- EventKind - enumeration: the beginning or end of the broadcast state.
- InterchangeEventArgs - argument to the event handler for the start and end of the session.
- InterchangeEventHandler - event handler for the start and end of the session.
- GroupEventArgs - argument to the event handler for the start and end of a functional group.
- GroupEventHandler - event handler for the start and end of a functional group.
- MessageEventArgs - argument to the event handler for the start and end of the message.
- MessageEventHandler - event handler for the start and end of a message.
- EdifactBuilderOptions - class of translator options from XML to EDIFACT.
- EdifactBuilder - translator class from XML to EDIFACT.
These are types that correspond to the EDIFACT header and trailer system types.
-
BatchInterchangeHeader - batch session header, corresponds to the
UNB
segment. -
BatchMessageHeader - header reportedpacket session, corresponds to the
UNH
segment. -
GroupHeader - functional group header, corresponds to the
UNG
segment. -
InteractiveInterchangeHeader - interactive session header, corresponds to the
UIB
segment. -
InteractiveMessageHeader - message header of the interactive session, corresponds to the
UIH
segment.
-
SyntaxIdentifier - class corresponding to the system composite type
S001
. -
Identification - a class corresponding to the system composite types
S016
,S017
,S018
,S305
. -
PartyIdentification - a class corresponding to the system composite types
S002
,S003
,S006
,S007
. -
MessageIdentification - a class corresponding to the system composite types
S009
,S306
, also used for the combination of components0038
andS008
of theUNG
segment (functional group header). -
BatchStatusOfTransfer - class corresponding to the system composite type
S010
. -
DateTimeOfEvent - a class corresponding to the system composite types
S004
,S300
. -
DialogueReference - class corresponding to the system composite type
S302
. -
InteractiveStatusOfTransfer - class corresponding to the system composite type
S301
. -
ReferenceOrPasswordDetails - class corresponding to the system composite type
S005
. -
TransactionReference - class corresponding to the system composite type
S303
.
- IStreamFactory - factory interface for unified receipt of I/O streams in different environments.
- LocalFileStreamFactory - implementation of the IStreamFactory interface for the local file system.
- Formats - a class to facilitate the use of some numbered formats from the EDIFACT specification.