Skip to main content

Legacy, mainframe and middleware formats

Some of the most important interfaces in a company are also the oldest. A CICS program exchanges COBOL records, a Java service still serves WADL, a telecom back-end talks CORBA, and every X.509 certificate is defined in ASN.1. These contracts rarely have an OpenAPI document. Apiome imports each of them into the Catalog with its own importer, so they can be searched, versioned, diffed and linted next to your modern APIs, and moved to a modern format when you are ready.

Use this page to find the right importer. Each one has its own page with the details.

What you can import​

SourceWhat it isImporterSteps
COBOL copybookThe record layout of a mainframe file, message or CICS COMMAREA (.cpy)cobolcopybookImport COBOL copybooks
z/OS ConnectThe descriptor that binds a REST operation to the COBOL structures a CICS or IMS program passeszosconnectLink z/OS Connect to its copybooks
WADLThe XML REST description that came before OpenAPI, still served by JAX-RS back-endswadlImport WADL descriptions
CORBA IDLOMG IDL interfaces, operations and types, from telecom, defense and finance back-endscorbaidlImport CORBA IDL (OMG IDL) definitions
ASN.1The schema language behind X.509, 4G / 5G signalling, SNMP and LDAPasn1Import ASN.1 modules
XML-RPCMethod calls, responses and faults of an XML-RPC servicexmlrpcImport XML-RPC method descriptions
ONC RPCrpcgen .x files: programs, procedures and XDR typesoncrpcImport ONC RPC (XDR) definitions

How it works​

  1. Import the file. Go to Bring in → Catalog, click "Import to catalog", and upload or paste it on File Upload. Files that belong together go in one archive (.zip, .tar.gz). From the CLI, use apiome import cobolcopybook, apiome import wadl, apiome import corbaidl, apiome import asn1, apiome import xmlrpc or apiome import oncrpc.
  2. It lands in the Catalog. Records, interfaces, modules and methods become types and operations, with what their encoding depends on: a copybook's byte offsets and lengths, ASN.1's tags and constraints, CORBA's positional members.
  3. Compare versions by how the wire sees them. Import a newer file into the same item and tick two versions on its Versions tab. Each format grades a change by what it does to a reader that still has the old contract:
  4. Lint it. Each format adds its own rules on the item's Lint & score tab. See COBOL, WADL, CORBA IDL, ASN.1, XML-RPC and ONC RPC.

z/OS Connect binds each REST operation to a request and a response structure in a copybook. Import the descriptor, its copybooks and the OpenAPI document, then click "Suggest links" in Related artifacts on the descriptor's item to keep the three sides together. See Link z/OS Connect to its copybooks.

Move to a modern format​

Every item writes back out in its own format from Export, and each one also has a way forward:

FromToHow
WADLOpenAPIConvert to OpenAPI Project on the item (Migrate to OpenAPI)
XML-RPCJSON-RPC / OpenRPCExport to OpenRPC and compare with the item's migrate note
ONC RPCgRPCExport to Protocol Buffers and compare with the item's migrate note
CORBA IDLgRPCExport to Protocol Buffers (Export)
COBOL copybookJSON SchemaExport to JSON Schema to describe the record to a modern consumer (Export)

More mainframe formats​

Apiome also reads the rest of a mainframe estate: PL/I structures, IMS DBD and PSB, Natural / ADABAS DDM and VSAM cluster definitions and CICS BMS maps.

Where next​