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 /ksiCards/Card/Activate HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<KsiCardsActivateCardRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Id>0</Id>
<RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
<Signature>
<Signature>String</Signature>
<SystemId>String</SystemId>
<SystemSecret>String</SystemSecret>
</Signature>
</KsiCardsActivateCardRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<KsiCardsUpdateStatusResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Card xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
<d2p1:CanTransferToNName>String</d2p1:CanTransferToNName>
<d2p1:CanTransferToPhoneFullNumber>String</d2p1:CanTransferToPhoneFullNumber>
<d2p1:CreationDate>0001-01-01T00:00:00</d2p1:CreationDate>
<d2p1:DeviceId>String</d2p1:DeviceId>
<d2p1:ExpMonth>String</d2p1:ExpMonth>
<d2p1:ExpYear>String</d2p1:ExpYear>
<d2p1:HolderName>String</d2p1:HolderName>
<d2p1:Id>0</d2p1:Id>
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:KsiCardTypeId>String</d2p1:KsiCardTypeId>
<d2p1:KsiClubId>String</d2p1:KsiClubId>
<d2p1:LastModifiedDate>0001-01-01T00:00:00</d2p1:LastModifiedDate>
<d2p1:PhoneFullVerificationNumber>String</d2p1:PhoneFullVerificationNumber>
<d2p1:RevokedDate>0001-01-01T00:00:00</d2p1:RevokedDate>
<d2p1:RevokedReason>String</d2p1:RevokedReason>
<d2p1:ValidFromDate>0001-01-01T00:00:00</d2p1:ValidFromDate>
<d2p1:ValidToDate>0001-01-01T00:00:00</d2p1:ValidToDate>
</Card>
<Message>String</Message>
<StatusCode>0</StatusCode>
</KsiCardsUpdateStatusResult>