This procedure describes how to use Control-M/EM API to write your project.
NOTE: You can use the Sample class as a basis for building your project.
To write your project:
import com.bmc.ctmem.emapi.*;
EMXMLInvoker.init();
ComponentType gsr_comp = new GSRComponent();
For more information, see Sending a request using the EMXMLInvoker or EMBasicXMLInvoker.
EMXMLInvoker my_invoker = new EMXMLInvoker(gsr_comp);
try {
XMLResponse = my_invoker.invoke(XMLRequest);
}
catch(InvokeException i) {
}
The class is now ready. You can use it in your project. For more information, see Sending a request using the EMXMLInvoker or EMBasicXMLInvoker.
To run your project, you must pass it the relevant Java Virtual Machine variables.
For more information, see Running your project.
Parent Topic |