Step 2 of 4
What you start with
Pay data starts from 2 interface descriptions, as they come out of the legacy system. Nothing else is needed.
COBOL copybook (fixed-length record layout)
The record layout of a mainframe file: level numbers, PIC clauses, packed decimals (COMP-3). The batch-input copybook legacy/payroll-change.cpy adds the change records.
legacy/payroll.cpylines 1–28 of 28 *================================================================
* EMPLOYEE - payroll master record of the Cobol Batch mock.
* Invented test layout for Legacy Bridge, not from a real system.
* Fixed length 200 bytes, RECORD SEQUENTIAL, no record separator.
* Written by the payroll batch, changed only through PAYCHG
* change records (legacy/payroll-change.cpy, cobol/PAYUPD.cbl).
*================================================================
01 EMPLOYEE-RECORD.
05 EMPLOYEE-ID PIC 9(8).
* Names, salary and bank details are personal data: masked
* unless a policy permits readSensitive.
05 EMPLOYEE-NAME.
10 FIRST-NAME PIC X(25).
10 LAST-NAME PIC X(30).
05 COST-CENTER PIC X(10).
05 PAY-GRADE PIC X(4).
05 MONTHLY-SALARY PIC S9(7)V99 COMP-3.
05 SALARY-CURRENCY PIC X(3).
05 BANK-DETAILS.
10 ACCOUNT-HOLDER PIC X(35).
10 IBAN PIC X(34).
10 BIC PIC X(11).
05 EMPLOYMENT-STATUS PIC X.
88 EMPLOYEE-ACTIVE VALUE 'A'.
88 EMPLOYEE-ON-LEAVE VALUE 'L'.
88 EMPLOYEE-LEFT VALUE 'X'.
05 LAST-CHANGE-DATE PIC 9(8).
05 FILLER PIC X(26).SOAP WSDL 1.1 with XSD
The contract of a SOAP service: messages, types and the operation that compares an IBAN with a name.
legacy/payee-check.wsdllines 1–30 of 115<?xml version="1.0" encoding="UTF-8"?>
<!--
Verification of payee service of an invented bank network (self-authored for Legacy Bridge, no real data).
Before a new bank account is used for a payment, the payer asks the payee's bank whether the account holder
name matches the IBAN. WSDL 1.1, SOAP 1.1, document/literal. Served by mocks/payee-check at
http://localhost:4730/payee-check/VerificationService?wsdl
-->
<wsdl:definitions name="PayeeCheck"
targetNamespace="urn:legacy-bridge:payee-check:1"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="urn:legacy-bridge:payee-check:1">
<wsdl:documentation>Verification of payee: does the account holder name match the IBAN?</wsdl:documentation>
<wsdl:types>
<xs:schema targetNamespace="urn:legacy-bridge:payee-check:1" elementFormDefault="qualified"
xmlns:bridge="urn:legacy-bridge:annotations:1">
<xs:simpleType name="Iban">
<xs:annotation><xs:documentation>IBAN without spaces, ISO 13616 (country, check digits, account)</xs:documentation></xs:annotation>
<xs:restriction base="xs:string">
<xs:maxLength value="34"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="VerificationResult">
<xs:restriction base="xs:string">
<xs:enumeration value="MATCH"/>