Previous Topic

Next Topic

Book Contents

Book Index

Examples of an XML request using different formats

The following example is an XML request using the previous format:

<?xml version="1.0" encoding="ISO-8859-1"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:Body>

<ctmem:request_def_add_table xmlns:ctmem="http://www.bmc.com/ctmem/schema700">

      <ctmem:user_token>$USER_TOKEN$</ctmem:user_token>

      <ctmem:parent_table>

            <ctmem:control_m>$CONTROL_M$</ctmem:control_m>

            <ctmem:table_name>smart</ctmem:table_name>

            <ctmem:table_library/>

            <ctmem:user_daily>user_daily</ctmem:user_daily>

      </ctmem:parent_table>

      <ctmem:sub_table>

            <ctmem:table_name>sub</ctmem:table_name>

            <ctmem:table_attributes>

                  <ctmem:application>apiWinApp3</ctmem:application>

                  <ctmem:group>apiGroup3</ctmem:group>

                  <ctmem:owner>controlm</ctmem:owner>

                  <ctmem:author>emuser</ctmem:author>

                  <ctmem:sub_table_rule_based_cals>

                        <ctmem:sub_rule_based_cal>

                              <ctmem:rule_based_cal_name>

                              rule_based_cal_name

                              </ctmem:rule_based_cal_name>

                        </ctmem:sub_rule_based_cal>

                  </ctmem:sub_table_rule_based_cals>

            </ctmem:table_attributes>

      </ctmem:sub_table>

</ctmem:request_def_add_table>

      </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

The following example is an XML request using the current format:

<?xml version="1.0" encoding="ISO-8859-1"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:Body>

<ctmem:request_def_add_folder xmlns:ctmem="http://www.bmc.com/ctmem/schema918">

      <ctmem:user_token>$USER_TOKEN$</ctmem:user_token>

      <ctmem:parent_folder>

            <ctmem:control_m>$CONTROL_M$</ctmem:control_m>

            <ctmem:folder_name>smart</ctmem:folder_name>

            <ctmem:folder_library/>

            <ctmem:order_method>user_daily</ctmem:order_method>

      </ctmem:parent_folder>

      <ctmem:sub_folder>

            <ctmem:folder_name>sub</ctmem:folder_name>

            <ctmem:folder_attributes>

                  <ctmem:application>apiWinApp3</ctmem:application>

                  <ctmem:sub_application>apiGroup3

                  </ctmem:sub_application>

                  <ctmem:run_as>controlm</ctmem:run_as>

                  <ctmem:created_by>emuser</ctmem:created_by>

                   <ctmem:sub_folder_rule_based_cals>

                         <ctmem:sub_rule_based_cal>

                              <ctmem:rule_based_cal_name>

                              rule_based_cal_name

                              </ctmem:rule_based_cal_name>

                        </ctmem:sub_rule_based_cal>

          </ctmem:sub_folder_rule_based_cals>

        </ctmem:folder_attributes>

      </ctmem:sub_folder>

    </ctmem:request_def_add_folder>

      </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Parent Topic

Updating Control-M/EM API