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.
GET /ownerCardTypes/connections/{OwnerId} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<OwnerCardTypeConnectionsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<EntitlesNothingCount>0</EntitlesNothingCount>
<Items>
<OwnerCardTypeConnectionsItem>
<ActiveConnections>0</ActiveConnections>
<EntitlesNothing>false</EntitlesNothing>
<IsActive>false</IsActive>
<Name>String</Name>
<OwnerCardTypeId>0</OwnerCardTypeId>
<Series>
<OwnerCardTypeSeriesItem>
<Id>0</Id>
<IsActive>false</IsActive>
<Name>String</Name>
<TicketTypeCount>0</TicketTypeCount>
</OwnerCardTypeSeriesItem>
</Series>
<TotalConnections>0</TotalConnections>
</OwnerCardTypeConnectionsItem>
</Items>
<Message>String</Message>
<SeriesWithoutCards>
<UncoveredSeriesItem>
<Name>String</Name>
<NextEventUTC>0001-01-01T00:00:00</NextEventUTC>
<SeriesId>0</SeriesId>
<UpcomingEvents>0</UpcomingEvents>
</UncoveredSeriesItem>
</SeriesWithoutCards>
<SeriesWithoutCardsCount>0</SeriesWithoutCardsCount>
<StatusCode>0</StatusCode>
<UpcomingSeries>
<UncoveredSeriesItem>
<Name>String</Name>
<NextEventUTC>0001-01-01T00:00:00</NextEventUTC>
<SeriesId>0</SeriesId>
<UpcomingEvents>0</UpcomingEvents>
</UncoveredSeriesItem>
</UpcomingSeries>
</OwnerCardTypeConnectionsResult>