One of the features of this replay server is to allow testing changes to XML-configurations in a development environment, without having to change the configuration of the production environment. To facilitate this, it is possible to alter the XML-configuration on the fly. The configuration is saved on a client-basis (not session), so if you have more than one active connection to the replay server, a change in the configuration on one of them will affect the others as well. Any changes to the XML-configuration will remain in place until one of the following things happen:
- The configuration is changed again using an <XmlConfig>-request.
- The server restarts
- The client sends a reset message to the server
- If you log in and there are no other active connections for that client
Accessing/retrieving the current XML configuration
Requesting the current XML configuration will return an XML structure containing all XML settings available, and their current value.
<XmlConfig />
<XmlConfig reset="true"/>
Element | Attributes |
---|
| Attribute | Description | Possible values |
XmlConfig | reset | Optional attribute. Adding this attribute will reset the XMLconfiguration to the default configuration used on this client. This configuration can be found on: www.betradar.com > Live > Liveodds Config > Configure XML. | String "true" if the configuration should be reset |
Altering the current XML configuration
Sending the following XML message will alter the XML configuration:
<XmlConfig>
<XmlOption configId="6" active="true" />
<XmlOption configId="84" active="false" />
</XmlConfig>
<XmlConfig reset="true">
<XmlOption configId="12" active="true" />
</XmlConfig>
Element | Attributes |
---|
| Attribute | Description | Possible values |
XmlOption | configId | The id of the configuration which should be enabled/disabled | Integer |
active | Whether the option should be activated or deactivated. | String "true" = enable "false" = disable |