You read any transaction file in exactly the same way as the rest. So for COARRI:
var ediStream = File.OpenRead("C://yourcoarrifile.txt");
List<IEdiItem> ediItems; using (var ediReader = new EdifactReader(ediStream, TemplateFactory.TrialTemplateFactory)) ediItems = ediReader.ReadToEnd().ToList();
var transactions = ediItems.OfType<TSCOARRI>();
and for CODECO:
var ediStream = File.OpenRead("C://yourcodecofile.txt");
List<IEdiItem> ediItems; using (var ediReader = new EdifactReader(ediStream, TemplateFactory.TrialTemplateFactory)) ediItems = ediReader.ReadToEnd().ToList();
var transactions = ediItems.OfType<TSCODECO>();
The template factory resolves the correct transaction. The trial only works with version D96A so when you test your files ensure that they are D96A version.
0
Manish Goswami
Thanks team for your prompt reply. Do i need to Pay or it is free
Comments
2 comments
Hello,
You read any transaction file in exactly the same way as the rest. So for COARRI:
and for CODECO:
The template factory resolves the correct transaction. The trial only works with version D96A so when you test your files ensure that they are D96A version.
Thanks team for your prompt reply. Do i need to Pay or it is free
Please sign in to leave a comment.