2017-07-05

AACC: How to change internal variable value from external application


If for some reason you want to change variable value of AACC from external application you can use following web-service (works for any version of AACC).

WSDL:


Method:
SOAPScriptingWrapper_ScriptVarsWS_SetItem_All_Ex

Sample request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://SOAPScriptingWrapper.CCMA.Applications.Nortel.com">
   <soapenv:Header/>
   <soapenv:Body>
      <soap:SOAPScriptingWrapper_ScriptVarsWS_SetItem_All_Ex>
                   <!—CCMA admin user -->
                  <soap:ccmaUserName>webadmin</soap:ccmaUserName>
                   <!—IP address of client application -->
                   <soap:clientIP>XXX.XXX.XXX.XXX</soap:clientIP>
                   <!—IP address of AACC server -->
                   <soap:strSIP>ZZZ.ZZZ.ZZZ.ZZZ</soap:strSIP>
                   <!—CCMSU admin username & password -->
                   <soap:strUserName>sysadmin</soap:strUserName>
                   <soap:strPassw>********</soap:strPassw>
       <!— Variable ID -->
                   <soap:intVarID>15849</soap:intVarID>
       <!— Variable name -->
                   <soap:strVarName>int_test001</soap:strVarName>
                   <soap:bRefedByTF>0</soap:bRefedByTF>
                   <soap:intTableID>28</soap:intTableID>
                   <soap:intStatus>2</soap:intStatus>
                   <soap:intVarType>11</soap:intVarType>
                   <soap:intVarClass>30</soap:intVarClass>
                   <soap:intDataType>1</soap:intDataType>
        <!— Change variable to this value -->
                   <soap:strListValue>1</soap:strListValue>
                   <soap:intNumValue>1</soap:intNumValue>
                   <soap:intValueSize>4</soap:intValueSize>
                   <soap:bFreeValue>1</soap:bFreeValue>
      </soap:SOAPScriptingWrapper_ScriptVarsWS_SetItem_All_Ex>
   </soapenv:Body>
</soapenv:Envelope>


Successful response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <SOAPScriptingWrapper_ScriptVarsWS_SetItem_All_ExResponse xmlns="http://SOAPScriptingWrapper.CCMA.Applications.Nortel.com">
        <SOAPScriptingWrapper_ScriptVarsWS_SetItem_All_ExResult>1</SOAPScriptingWrapper_ScriptVarsWS_SetItem_All_ExResult>
         <strErrMsg/>
      </SOAPScriptingWrapper_ScriptVarsWS_SetItem_All_ExResponse>
   </soap:Body>
</soap:Envelope>



Unsuccessful response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <SOAPScriptingWrapper_ScriptVarsWS_SetItem_All_ExResponse xmlns="http://SOAPScriptingWrapper.CCMA.Applications.Nortel.com">   <SOAPScriptingWrapper_ScriptVarsWS_SetItem_All_ExResult>0</SOAPScriptingWrapper_ScriptVarsWS_SetItem_All_ExResult>
         <strErrMsg/>
      </SOAPScriptingWrapper_ScriptVarsWS_SetItem_All_ExResponse>
   </soap:Body>
</soap:Envelope>

No comments:

Post a Comment