Figure 6-144 The Assembly to implement the API  The code details for each one of the gateway scripts are included in Example 6-5 below. 266  Accelerating Modernization with Agile Integration DB Create Cmd: var urlopen = require ('urlopen'); var putData = apim.getvariable('request.body'); var options = { target:  'mq://XXX.XXX.XXX.XXX:YYYYY?QueueManager=mqicp4i;UserName=user11;Channel=ACE.TO.MQ;ChannelTimeout=3000;' +  'ChannelLimit=2;Size=100000;MQCSPUserId=user11;MQCSPPassword=ZZZZZZZZZZZZ;RequestQueue=DB.CREATE;TimeOut=10 000', data : putData, headers : { MQMD : {  MQMD: {  StructId : { $ : 'MD' } , Version : { $ : '1'} , Format: { $ : "MQSTR"} , } }  } }; urlopen.open (options, function (error, response) {} ); apim.setvariable('message.body','{ "statusMsg": "Command to create row was received successfully" }'); DB Update Cmd: var urlopen = require ('urlopen'); var putData = apim.getvariable('request.body'); putData.partNumber = apim.getvariable('request.parameters.partNumber'); var options = { target: 'mq://  XXX.XXX.XXX.XXX:YYYYY?QueueManager=mqicp4i;UserName=user11;Channel=ACE.TO.MQ;ChannelTimeout=3000;' Example 6-5 Code details