HP Anywhere API Reference
Data Source Provider XML

The data source provider XML defines the settings that enable an app to resolve the backend location at runtime. The pathname of the file is: App-web/src/main/resources/<myAppName>-ds-provider.xml 

Element Description
dataSourceName Unique name of the data source. This name is used to retrieve the values of the datasource.
serviceId

The app service ID.

configProperty Representation of a property. Also supports enumeration properties with predefined values.
configProperty/Name The key name of the property. For example: HostName
configProperty/type Supported types are: STRING, INTEGER, ENUMERATION, and PASSWORD.
configProperty/value The default value for this property (String). Can be empty.
configProperty/isRequired If true, the property must have a value. (Boolean)
configProperty/propValues List of possible values. Applies only to ENUMERATION type properties.

 

Example: Data Source Provider XML
Copy Code
<dataSourceProvider>
    <dataSourceName>NOTES-DS</dataSourceName>
    <serviceId>NOTES</serviceId>
    <!--Optional:-->
    <configProperties>
        <!--Zero or more repetitions:-->
        <configProperty>
            <name>HostName</name>
            <type>STRING</type>
            <value/>
            <isRequired>true</isRequired>
            <propValues/>
        </configProperty>
        <configProperty>
            <name>Port</name>
            <type>INTEGER</type>
            <value/>
            <isRequired>true</isRequired>
            <propValues/>
        </configProperty>
        <configProperty>
            <name>Protocol</name>
            <type>ENUMERATION</type>
            <value/>
            <isRequired>true</isRequired>
            <propValues>http</propValues>
            <propValues>https</propValues>
        </configProperty>
        <configProperty>
            <name>AuthPolicy</name>
            <type>ENUMERATION</type>
            <value/>
            <isRequired>false</isRequired>
            <propValues>lwsso</propValues>
            <propValues>basic</propValues>
        </configProperty>
    </configProperties>
</dataSourceProvider>