telco-interop

WBCI validation

Know before sending whether the peer will refuse a WBCI request or message: 28 cited rules with element path, source and the code the peer answers with.

Values are valid by construction: their types check every length, pattern and character of the schema. Validation covers what types cannot.

use wbci::*;

// 8001 belongs to RUEM-VA, not to ABBM.
abbm.positionen = vec![Position::new(Meldungscode::Zwa).into()];
let issues = Meldung::from(abbm).issues(None);
assert_eq!(issues[0].rule, "code.applicability");
assert_eq!(issues[0].path, "Meldung/Position[1]/Meldungscode");
println!("{}", issues[0]);
// error [code.applicability] Meldung/Position[1]/Meldungscode: 8001 may not answer VA-KUE-MRN in a ABBM (AH4WBCI 2.10 §2, §5.3)

Every Issue has a severity (error: the peer or certifier refuses it; warning: the specifications advise against it), a path, a stable rule, a message, its source and, where one exists, the code a peer answers with. Issues never contain personal data.

The rules🔗

Twenty-eight rules; an issue’s rule field names one of them.

RuleChecksSource
schema.countrepetitions within the schema’s boundsXSD V2.00
ekp.distinctEKPauf and EKPabg differAnl. 1 §2.1
id.issuerids carry the sender’s carrier codeAnl. 1 §2.9.1
block.rangea number block runs low to high, same lengthAnl. 1 §2.3
rufnummer.duplicatea number listed twice (warning)Anl. 1 §2.3
zeitfenster.zf3, zeitfenster.zf1ZF3 only by agreement; ZF1 is for porting without takeover (warnings)Anl. 1 §3.1
bezug.ekpthe repeated original request names the same partiesXSD
str-auf.ekpabg-grundthe EKPabg cancels only for the listed reasons (warning)Anl. 1 §2.9.2
va.leadrequested date ≥ 20 AT (KUE) or 7 AT (RRNP) ahead (warning; with issues_at)Anl. 1 §2.5
termin.working-dayrequested or agreed date is a working day (warning)Anl. 1 §2.3
absender.party, absender.rolethe message comes from the right sideAH §2
code.unknown, code.applicabilitythe code exists, belongs to this message kind and answers this caseAH §2, §5.3
ruem-va.zustimmungexactly one 8001 or 8002Anl. 1 §2.3
ruem-va.adaADA codes 8104–8107 carry the matching address partAnl. 1 §2.3
ruem-va.zwa, ruem-va.nat8001 confirms the requested date; a later date is 8002Anl. 1 §2.3
ruem-va.dateagreed date ≥ requested date and ≥ 15 AT ahead (KUE; with issues_at)Anl. 1 §2.5
abbm.rufnummernnumbers only with 8103 (RNG)XSD
abbm.son-begruendung8116 always with a reasonAnl. 1 §2.3
abbm.tvs-termin, erlm.tvs-termina refused postponement returns the valid date; an accepted one confirms the requested dateAnl. 1 §2.11
meldung.ref, meldung.answersan answer refers to the request’s ids, parties and caseAH §2
akm-tr.leitunglines only with takeover; a takeover names its line (warning)AH §2
teq.mixeda receipt is either OK or an error, not bothWBCI 2.0 §3.2

Anfrage::issues(), Meldung::issues(answering) and Teq::issues() check the value; issues_at(…, sent_at, &calendar) adds the rules that depend on when it is sent. Ordering rules — a postponement before an agreement, a duplicate id — are the process’s job.

Edit this page on GitHub · Report a mistake · API reference on docs.rs