EMXMLInvoker class

The EMXMLInvoker class sends XML formatted requests to Control‑M/EM and returns responses to the program that issues requests. This class does not process response data. Certain asynchronous requests (such as the Job Creation request) take time for Control‑M to process and only indicates if the request has been submitted successfully.

An application using the EMXMLInvoker class may make several requests to check whether the expected response is available by sending a poll request. To identify the original request (for which polling is being performed) the poll request includes a tracking ID, which is supplied in a response from Control‑M/EM immediately after certain asynchronized requests are submitted. The program can submit this tracking ID in a poll request several times, until the required response is available.

The following flowchart illustrates an EMXMLInvoker request session:

The following figure illustrates the polling process in detail. The advantage of the polling process is that the API always replies immediately to the request. No extra time or resources are spent processing the responses.

Parent Topic

Control-M/EM API requests