Difference between revisions of "I2Rest PCML syntax"
Pavel.lobko (talk | contribs) |
Pavel.lobko (talk | contribs) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:I2Rest PCML syntax}} | {{DISPLAYTITLE:I2Rest PCML syntax}} | ||
+ | == Additional PCML data tags == | ||
Two more attributes in [Https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_74/rzahh/pcmldttg.htm PCML data tag]. Generaly both attributes was added in order to improve response processing on server side.<br> | Two more attributes in [Https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_74/rzahh/pcmldttg.htm PCML data tag]. Generaly both attributes was added in order to improve response processing on server side.<br> | ||
trimarray - specifies the path to programm, that should handle array been passed in current <data> element. | trimarray - specifies the path to programm, that should handle array been passed in current <data> element. | ||
Line 9: | Line 10: | ||
<code><pre> <data name="ERMSG" type="struct" usage="output" struct="KSM" assert="/qsys.lib/%libl%.lib/jpcmla_eq.pgm" exclude="true"/> </pre></code> | <code><pre> <data name="ERMSG" type="struct" usage="output" struct="KSM" assert="/qsys.lib/%libl%.lib/jpcmla_eq.pgm" exclude="true"/> </pre></code> | ||
jpcmla_eq - is the program that comes in the package with i2Rest Server. It examine data in ERMSG element and returns flag if KSM or errormessage is found. When PCML parser recieve flag from jpcmla_eq it stops handling PCML tags. That prevents possible failures, which could occur if incorrect data was transferred with such response. | jpcmla_eq - is the program that comes in the package with i2Rest Server. It examine data in ERMSG element and returns flag if KSM or errormessage is found. When PCML parser recieve flag from jpcmla_eq it stops handling PCML tags. That prevents possible failures, which could occur if incorrect data was transferred with such response. | ||
+ | |||
+ | == Swagger tag == | ||
+ | This tag contain information for Open Api. |
Revision as of 14:13, 11 May 2020
Additional PCML data tags
Two more attributes in PCML data tag. Generaly both attributes was added in order to improve response processing on server side.
trimarray - specifies the path to programm, that should handle array been passed in current element.
<data name="CCY" type="char" length="3" trimarray="/qsys.lib/%libl%.lib/jpcmlt_bl.pgm"/>
jpcmlt_bl -
assert - specifies the path to programm, that should handle some way data passed in current element. As example
<data name="ERMSG" type="struct" usage="output" struct="KSM" assert="/qsys.lib/%libl%.lib/jpcmla_eq.pgm" exclude="true"/>
jpcmla_eq - is the program that comes in the package with i2Rest Server. It examine data in ERMSG element and returns flag if KSM or errormessage is found. When PCML parser recieve flag from jpcmla_eq it stops handling PCML tags. That prevents possible failures, which could occur if incorrect data was transferred with such response.
Swagger tag
This tag contain information for Open Api.