Validation of service segments
Hello,
i'm wondering if EdiFabric can validate service segments like UNB, UNG, etc.?
Best regards,
Robin Reiß
Hello,
i'm wondering if EdiFabric can validate service segments like UNB, UNG, etc.?
Best regards,
Robin Reiß
Comments
3 comments
Yes, it can, two approaches:
1. Use AckMan to generate CONTRL which will validate all control segments together with all transactions.
2. As shown in the SDK, line 332:
Thanks for the quick reply.
Is there a way I can validate UNA segments, too?
No there isn't.
When reading EDIFACT, the parser will not read the message if UNA wasn't valid, so it implicitly validates it.
When writing you can use Separators.ToUNA() to generate UNA out of any separator set. You can also use GenerateSegment() from the UNA class to generate an UNA. Also when writing with a separator set different than the default, the EdifactWriter automatically inserts a UNA segment.
Please sign in to leave a comment.