Example: Creating a Control-M Web Services API Client

The following example describes how to create a Control-M Web Services API static proxy client created using AXIS. You can create web service clients using many vendors, each with its own syntax. Refer to your vendor’s documentation to determine the exact syntax for your web service client.

NOTE: All communication details with Control-M/EM are handled by the Control-M Web Services API. This is defined according to the Account Management Utility. For more information, see Control-M Web Services API account management.

To create a Control-M Web Services API Java AXIS RPC client:

  1. To generate the AXIS classes required to build the AXIS static proxy client, type the following command:

    java -classpath <AXIS required jars> org.apache.axis.wsdl.WSDL2Java <the service URL>

  2. Compile the JAVA files, using the following command:

    javac -classpath <Axis home>\lib\axis.jar;<Axis home>\lib\jaxrpc.jar -d .\ . .\com\bmc\www\ctmem\schema900\*.java

  3. Package the files created in step 2 into a .jar file, using the following command:

    jar cvf AxisGenerated.jar com

  4. Create a JAVA source code that gets the service object, instantiates the desire request object, invokes the operation with the request object, and receives the relevant response object. For more information, see Example Requests and Responses.

Parent Topic

Control-M Web Services API administration