In order to enable this feature when compiling from the command-line, the configuration property iscobol.compiler.servicebridge.bean must be set to the same value of iscobol.compiler.servicebridge.type.
• restSONGS.cbl : the bridge program that allows our songs program to be called as REST Web Service.
• beanSONGS.cbl : the bean that allows to test the REST Web Service
• beanSONGS.cpy: copybook used by beanSONGS.cbl
• beanSONGS.wrk: copybook used by beanSONGS.cblThe same result can be obtained by setting the necessary properties directly in the source code, using the SET Directive. For example:
In order to enable this feature within the isCOBOL Service Editor, just check the option Generate Java-Bean.
Returns the value of the given parameter. parameter_name doesn’t necessarily with the COBOL data item. This name is affected by ELK Directives. Sets the value of the given parameter. parameter_name doesn’t necessarily with the COBOL data item. This name is affected by ELK Directives.
By relying on these copybooks you can invoke set<parameter_name>() to set the parameters for the Web Service and then invoke run(). In this way you obtain a stand alone COBOL program that can consume the Web Service.
| Copyright (c) 2017 Veryant |
| Contact us |
|
Please share your comments on this manual or on any Veryant product documentation with the email button at the top left |