To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /configurations/devices HTTP/1.1
Host: api.mozzart.ath.cx
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetDeviceConfiguration xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Betting.WebApi.ServiceModel">
<Id>String</Id>
</GetDeviceConfiguration>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<DeviceConfiguration xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Betting.ReadModel">
<Currency>
<Id>String</Id>
<Value>String</Value>
</Currency>
<Id>String</Id>
<IsActive>false</IsActive>
<Language>
<Id>String</Id>
<Value>String</Value>
</Language>
<Location>
<Address>
<City>String</City>
<Coordinates>
<Lat>0</Lat>
<Lng>0</Lng>
</Coordinates>
<Country>String</Country>
<State>String</State>
<Street>String</Street>
<ZipCode>String</ZipCode>
</Address>
<Group>
<Id>String</Id>
<Value>String</Value>
</Group>
<Id>String</Id>
<IntegrationData xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</IntegrationData>
<Name>String</Name>
</Location>
<Name>String</Name>
<Organization>
<Address>
<City>String</City>
<Coordinates>
<Lat>0</Lat>
<Lng>0</Lng>
</Coordinates>
<Country>String</Country>
<State>String</State>
<Street>String</Street>
<ZipCode>String</ZipCode>
</Address>
<Id>String</Id>
<IntegrationData xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</IntegrationData>
<Name>String</Name>
</Organization>
<ProductInstances>
<ProductInstanceRef>
<Id>String</Id>
<Name>String</Name>
<Product>
<Category>String</Category>
<Id>String</Id>
<ProductProvider>
<Id>String</Id>
<Value>String</Value>
</ProductProvider>
<Value>String</Value>
</Product>
</ProductInstanceRef>
</ProductInstances>
<TimeZone>
<Id>String</Id>
<Value>String</Value>
</TimeZone>
</DeviceConfiguration>