Betradar - the betting arm of Sportradar

Page tree

Betradar - the betting arm of Sportradar

Skip to end of metadata
Go to start of metadata

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

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 configuration

Requesting the current XML configuration will return an XML structure containing all XML settings available, and their current value.

XML examples
<XmlConfig />


<XmlConfig reset="true"/>
ElementAttributes

AttributeDescriptionPossible values
XmlConfigreset

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:

XML examples
<XmlConfig>
	<XmlOption configId="6" active="true" />
	<XmlOption configId="84" active="false" />
</XmlConfig>


<XmlConfig reset="true">
	<XmlOption configId="12" active="true" />
</XmlConfig>
ElementAttributes

AttributeDescriptionPossible values
XmlOptionconfigId

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

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.