Show HN: SfEDI: a simple way to write EDI documents in dotnet core
github.com
github.com
Truth be told, sfEDI is as much an example of how EDI could be done simply as anything else. (I probably should have provided an example file generating a full document to show that). The main value that sfEDI has is in the validation performed by the Element class, which I suppose could be done just as well using string utils, since that's basically what it is.
The other advantage to treating your document like lists of segments and segments like lists of elements is that you can use things like LINQ to read, modify and update them. Obviously sfEDI is a work in progress, but I think that has some value. Again nothing you couldn't easily implement yourself, but that's sort of the point.
We weren't able to use an EDI provider like SPS and most of the libraries that we tried that went directly from C# to EDI had issues that we couldn't rectify, which is what led to this solution.
For instance take a look at these example files:https://secure.edidev.net/edidev-ca/help/Sample_Files/Sample...
I think for new development, it's been largely superseded by things like JSON, but for many applications, it's still kind of the thing.