Read "Product Specific Configuration Layout" - vendorConfig

Version 1
    This document was generated from CDN thread

    Created by: Tolga Yaramis on 25-08-2009 10:04:14 AM
    Hi All
     
    Is it possible to get "Product Specific Configuration Layout" settings which is displayed in Phone Configuration page in Cisco Unified CM Administration. By using AXL Command or maybe using <q1:executeSQLQuery ...
     
    I should create a method which takes a parameter (modelName: Cisco 7970) and returns those settings.
     
    I just looked at the AXL documentation but unfortunately I could not found something like getVendorConfigs, getProductInfos etc..
     
    Any idea?
     
    Thanks alot in advance for your answers.
     
     

    Subject: RE: Read "Product Specific Configuration Layout" - vendorConfig
    Replied by: David Staudt on 25-08-2009 01:43:04 PM
    This info is available via getPhone in the vendorConfig element.  Note this field is composed of XML itself, and so the xsd type of the vendorConfig field is 'any.'  This means that it will not parse cleanly via standard middleware tools like Axis/.NET, which do not implement deserializers for type 'any.'
     
    The data is available with executeSQLQuery via the 'device' table and 'xml' field:
     
    <SQL>select xml from device where name = 'SEP123456789012'</SQL>

    Subject: RE: Read "Product Specific Configuration Layout" - vendorConfig
    Replied by: Tolga Yaramis on 25-08-2009 02:06:31 PM
    Hi
     
    Thanks for your answer.
     
    however thats not what I'm looking for.
    yes its true that getPhone returns vendorConfig info. But if device doesnt have any vendorConfig settings yet?
     
    you can also add a Phone without vendorConfig by using "addPhone" AXL command  like this:
     
            <m:addPhone xmlns:m="http://www.cisco.com/AXL/API/1.0" sequence="">
                <newPhone>
                     <name>SEP00115C0F6123</name>
                    <description>Test Phone</description>
                     .....
                     .....
     
    What I would like to do:
    I would like to create a phone using "addPhone" AXL command but with vendorConfigs. And vendorConfig settings are kept in CM according to product name.
     
    So I need to write a query in my application to get vendorConfig according to selected "Product" model.
     
    GetVendorConfigs(string modelName) >> modelName: Cisco 7970
     
    and using this method I would like to get same result like the vendorConfig element part which is existing in getPhone resultset.
     
    is it possible?
     
     
     
     


    This info is available via getPhone in the vendorConfig element.  Note this field is composed of XML itself, and so the xsd type of the vendorConfig field is 'any.'  This means that it will not parse cleanly via standard middleware tools like Axis/.NET, which do not implement deserializers for type 'any.'
     
    The data is available with executeSQLQuery via the 'device' table and 'xml' field:
     
    <SQL>select xml from device where name = 'SEP123456789012'</SQL>

    Subject: RE: Read "Product Specific Configuration Layout" - vendorConfig
    Replied by: David Staudt on 25-08-2009 04:10:52 PM
    I think I understand your dilemma: you need to know the vendorConfig schemas for each model, so you can generate them yourself.
     
    Unfortunately these do not exist, AFAIK.  The item which defines the schema for a particular phone model's vendorConfig settings is a special XML file present on UCM, which a proprietary layout which describes the "custom" input fields, types, validation rules, etc.  The validation rules are mapped to another set of XML files which contain XML descriptions (again proprietary) of the specific validation rules.  These files are used to build the admin phone config screen at run time, which then saves the resulting data into the vendorConfig field in a basic XML format.
     
    On a CM4.x server, you can take a peek at these 'display instance' files to get an idea of what they contain: C:\Program Files\Cisco\Bin\Xmltemp\Xml\
     
    On a CM5+ system, the files are not accessible.