Skip to main content

Last updated: 2024-06-07


GetConfiguration Method


In this topic:


Overview


The GetConfiguration method retrieves the content of an element in the SmartOffice server configuration file (config.xml).


The GetConfiguration method is invoked using the method operation.


Parameters


Parameter NameTypeRequired?Description
KeyStringYesThis is the element in the config.xml file whose content you want to retrieve.

Example


The following example retrieves the content of the lockAfterLoginFailures element, which is a child of the passwordOptions element:


XML
<request version='1.0'>
    <header>...</header>
    <method>
        <GetConfiguration>
            <Key>passwordOptions.lockAfterLoginFailures</Key>
        </GetConfiguration>
    </method>
</request>

The response returns the content of the element:


XML
<response version="1.0">
    <header>
        <sessionClosed/>
    </header>
    <method>
        <GetConfiguration>
            <passwordOptions.lockAfterLoginFailures>3</passwordOptions.lockAfterLoginFailures>
        </GetConfiguration>
    </method>
    <_status>OK</_status>
    <_systime>2015-10-20T22:31:00</_systime>
    <!--Cost 25 mill seconds.-->
</response>