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 /rounds/integrity HTTP/1.1
Host: s4wapi.wwin.ath.cx
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetRoundIntegrity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.WebApi.ServiceModel">
<RoundId>String</RoundId>
</GetRoundIntegrity>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<RoundIntegrityCheckResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel">
<BetCount>0</BetCount>
<ExtraWinnings>0</ExtraWinnings>
<JpInfo>
<AmountAccumulated>0</AmountAccumulated>
<AmountAwarded>0</AmountAwarded>
<IsHit>false</IsHit>
<JackPot5Winners>
<JackPot5Winner>
<BetId>String</BetId>
<NrOfCombinations>0</NrOfCombinations>
<Origin xmlns:d5p1="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel.Bets">
<d5p1:Application>
<d5p1:Name>String</d5p1:Name>
<d5p1:Version>String</d5p1:Version>
</d5p1:Application>
<d5p1:Clerk>
<Id>String</Id>
<Value>String</Value>
</d5p1:Clerk>
<d5p1:Device>
<Id>String</Id>
<Value>String</Value>
</d5p1:Device>
<d5p1:IP>String</d5p1:IP>
<d5p1:Location>
<Id>String</Id>
<Value>String</Value>
</d5p1:Location>
<d5p1:LocationGroup>
<Id>String</Id>
<Value>String</Value>
</d5p1:LocationGroup>
<d5p1:Organization>
<Id>String</Id>
<Value>String</Value>
</d5p1:Organization>
</Origin>
<Payload xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</Payload>
<WinningsAmount>0</WinningsAmount>
</JackPot5Winner>
</JackPot5Winners>
<NrOfWinners>0</NrOfWinners>
</JpInfo>
<Status>Ok</Status>
</RoundIntegrityCheckResult>