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
Info |
---|
Note If changes are made to the XML configuration settings on production, these will not automatically update on the replay server. If you want this to happen you need to drop all connections to the replay server, and then establish a new connection to the replay server. Otherwise the configuration will not be reloaded from production. |
Accessing/retrieving the current XML configurationRequesting the current XML configuration will return an XML structure containing all XML settings available, and their current value. Code Block |
---|
language | xml |
---|
title | XML examples |
---|
| <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 configurationSending the following XML message will alter the XML configuration: Code Block |
---|
language | xml |
---|
title | XML examples |
---|
| <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 |
Info |
---|
Note It is possible to both reset and set options in one message by specifying both the reset="true" parameter in the XmlConfig element, and adding one or more XmlOption elements to the message. The reset parameter will be handled first, followed by any XmlOption elements before the new XML configuration is returned to the client as an XML structure. |
|