Pcml object

From i2Rest
Revision as of 11:08, 12 April 2020 by Alexei.baranov (talk | contribs) (Created page with "= i2Rest PCML Object = Use this object to define API for calling existing programs on your IBM i server. It is required to prepare formal description of program call paramet...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

i2Rest PCML Object

Use this object to define API for calling existing programs on your IBM i server.

It is required to prepare formal description of program call parameters to be able to use existing *PGM or *SRVPGM as a API servce. i2Rest Server uses slightly extended version of Program Call Markup Language (PCML) as a basis of parameters documenting and processing.

PCML file can be created manually using any existing text editor, or generated automatically as part of CRTRPGMOD/CRTCBLMOD command (parameter PGMINFO). In any case, you have to put PCML file somewhere in IFS folder and include appropriate PCML object to the list of APIs that will be automatically loaded during i2Rest Server startup. As an option, you can publish PCML file to the running i2Rest Server instance using Add PCML API.