Trading Networks 10.7 | Administering and Monitoring B2B Transactions | webMethods Module for EDI | Before Creating the Service to Process EDI Documents | Logic to Include in the Service to Process EDI Documents | Processing the Entire Document at One Time | Performing Envelope Validation and Compliance Checks
 
Performing Envelope Validation and Compliance Checks
While processing an envelope, the wm.b2b.edi:envelopeProcess service optionally can validate the envelope against the predefined flat file schema for non-TRADACOMS documents. The service also can perform compliance checks against the interchanges.
When you invoke the wm.b2b.edi:envelopeProcess service, you can set the following input parameters to true to have the service perform the associated validation or compliance check:
Set this input parameter to true...
To have the wm.b2b.edi:envelopeProcess service...
validate
Validate the interchange envelope. For ANSI X12 and UN/EDIFACT standards this includes validating field lengths, code lists, ranges, and partitions. If the service finds any errors, it records them in the errorArray output parameter.
The interchange envelopes are validated against the EDI flat file schema for the EDI document. Module for EDI ships with EDI flat file schemas for ANSI X12 and UN/EDIFACT envelope validation and compliance checks. They are located in the wm.b2b.edi.EDIFFSchema folder.
complianceCheck
Check for matching interchange control numbers, matching group control numbers, matching transaction control numbers, segment counts, transaction counts, and group counts. After the first error is detected, the error service stops executing.
If you set both the complianceCheck and validate parameters to true, the envelopeProcess service performs the interchange envelope validation first, followed by the compliance check.