how to "save" and "apply config" through code / api

Version 1
    This document was generated from CDN thread

    Created by: Rusheel Jain on 07-11-2012 05:33:25 AM
    Hi all
    I wanted to apply MOH using .net code (axl api).
    The changes are reflecting on CUCM page but how to save and apply these configurations through code as these changes were not yet reflected on IP communicator.
    As of now I am forced to manually click on "save" and "apply config" buttons but I wanted to do them through  .net code / axl api
    This was the soap request used:
    string soap = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"\" ";
             soap += "xmlns:xsi=\"\" xmlns:xsd=\"\">";
             soap += "<SOAP-ENV:Body>";
             soap += "<axl:updatePhone xmlns:axl=\"\">";
             soap += "<name>";
             soap += "SEP3212";
             soap += "</name>";
             soap += "<userHoldMOHAudioSourceId>";
             soap += "1";
             soap += "</userHoldMOHAudioSourceId>";
             soap += "</axl:updatePhone>";
             soap += "</SOAP-ENV:Body>";
             soap += "</SOAP-ENV:Envelope>";

    Subject: Automatic reply: New Message from Rusheel Jain in Administration XML (AXL)
    Replied by: MATHEW BEALL on 07-11-2012 05:35:48 AM
    I am currently out of the office.  I will be checking emails as time permits. I will return to the office on Thursday, November 8th.  If you need immediate help, please contact the First American Service Desk. Thank you,

    ******************************************************************************************<BR>This message may contain confidential or proprietary information intended only for the use of the<BR>addressee(s) named above or may contain information that is legally privileged. If you are<BR>not the intended addressee, or the person responsible for delivering it to the intended addressee,<BR>you are hereby notified that reading, disseminating, distributing or copying this message is strictly<BR>prohibited. If you have received this message by mistake, please immediately notify us by<BR>replying to the message and delete the original message and any copies immediately thereafter.<BR>
    Thank you.~<BR>