MDADDIWS - Add Integrated Web Service command
The Add Integrated Web Service (MDADDIWS) command adds a Rest or SOAP service to an existing IWS server, making it possible to manage and deploy IWS services automatically using MDCMS.
It's recommended to run this command as an object-level or attribute-level post-install command on an RFP for the requested *IFS properties file or *IFS pcml file.
It's also highly recommended to keep the configuration for the service in the *IFS properties file, so that changes or rollbacks are audited and easy to perform. Refer to the Integrated Web Services Server Administration and Programming Guide for more details.
The MDCMS command is named MDADDIWS and is located in library MDCMS. The MD libraries must already be in the library list prior to using this command (Keep MD Libs in Libl = 'Y').
Prompt the command and then use the help function (F1 in MDCMS, Help in MDOpen) for detailed instructions about each command parameter.
Example MDADDIWS Parameters for an Attribute Command
The following is an example of the command to define for a *IFS attribute to add/replace a service in an existing Integrated Web Services server:
MDADDIWS SERVICE(##OBJNAM##) SERVER(##SERVER##) PGMNAM(##OBJNAM##) PGMTYP(*SRVPGM) PROP('##OBJLIB##/##OBJNAM##') LIBL(*CURLIBL)
- This example assumes the invoked program has the same name as the service and requested properties file. If different, then generate a reusable object-level command from this command for the specific service.
- The ##SERVER## placeholder is replaced at runtime with the server ID on the *IFS attribute or the object replication server for the attribute.
- LIBL(*CURLIBL) will automatically insert the library list for the target level into the library list for the service so that dependencies are correctly located at service run-time.