EdiFabric C# .NET Examples for VDA
EdiFabric is a software development kit for .NET Framework and .NET Core, which makes it straightforward to parse, generate, validate, acknowledge, split, customize, or in other words, to programmatically manipulate EDI files. It is written in C# and is distributed as a DLL file and a NuGet package.
It currently supports all message types for the X12, EDIFACT, HL7, and NCPDP EDI standards, the German automotive standard VDA, as well as custom formatted flat files (delimited, positional, or a mixture of both).
NOTE: EdiFabric does not provide any communication components (AS2 or SFTP, for example), has no dashboard or UI, and is not a full end-to-end EDI solution. The best option to get the gist of what EdiFabric is, and can do, is to play around with the trial and examples.
The examples are organized into different projects in two logical categories: by product feature and by message type.
Stream ediStream = File.OpenRead(Directory.GetCurrentDirectory() + @"\..\..\..\Files\Vda_4905_02.txt");
List<IEdiItem> ediItems;
using (var ediReader = new VdaReader(ediStream, MessageContextFactory))
ediItems = ediReader.ReadToEnd().ToList();
var transactions = ediItems.OfType<TS4905>();
All projects reference EdiFabric EDI Tools as NuGet packages from nuget.org. If you wish to install EdiFabric EDI Tools as DLLs, download the trial DLLs from here.
Rebuild the solution with Package Restore enabled. If there are any build errors, manually install the missing packages from here.
To get started, set project EdiFabric.Examples.VDA.Read as the startup project, open ReadVDA.cs and either run it as it is or change the path to point to a local 4905 test file.
Explore the different features of EdiFabric, such as translating from VDA file (Read) and generating VDA file (Write).
All trial templates in EdiFabric.Templates.Vda can be used for validation. If you need to test with a different template, please contact us.
The following templates are available out-of-the-box:
https://support.edifabric.com/hc/en-us/articles/360000367932-VDA-Templates-4905-4906-4908-4913-4915
For an interactive view of all templates go to EdiNation (no registration is required):
The trial serial key is valid for 14 days, and using the product with a trial license is subject to EdiFabric’s license terms available at https://www.edifabric.com/files/eula.pdf. Upon expiry, the product will begin throwing exceptions. To continue using the trial and the examples, you’ll need to request a trial extension.
The source code in these example projects is strictly for demonstrational purposes and is provided “AS IS” without warranty of any kind, whether expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
Last updated on June 20, 2023