Populate the Service Inputs (IData)
The fourth stage of the code creates input data variables. Service inputs are passed to Integration Server as an IData object. This code fragment demonstrates construction of the input IData pipeline:
// create the service inputs as an IData object
IData inputIData = IDataFactory.create();
// get a data cursor for our input IData
IDataCursor inputCursor = inputIData.getCursor();
// the addInts service takes 2 inputs: num1 and num2 (as strings)
IDataUtil.put( inputCursor, "num1" , num1.ToString() );
IDataUtil.put( inputCursor, "num2" , num2.ToString() );
// done with the input cursor, destroying it only cleans up the
// cursor resources, the IData object is left unaffected
inputCursor.destroy();