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 /GetAnnualLeaveCalendar HTTP/1.1
Host: amazon-api.squareonesystems.co.uk
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<AnnualLeaveCalendarViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AmazonRefrigeration.ViewModels">
<DaysInMonth>0</DaysInMonth>
<GetLeaveDatesForMonth>
<GetLeaveDatesForMonthViewModel>
<LeaveDate>0001-01-01T00:00:00</LeaveDate>
<StaffId>0</StaffId>
<StatusId>0</StatusId>
<Year>0</Year>
</GetLeaveDatesForMonthViewModel>
</GetLeaveDatesForMonth>
<Month>0</Month>
<Staff>
<StaffViewModel>
<AnnualLeaveAllowance>0</AnnualLeaveAllowance>
<AnnualLeaveBalance>0</AnnualLeaveBalance>
<EmailAddress>String</EmailAddress>
<FirstName>String</FirstName>
<Id>0</Id>
<IsDeleted>false</IsDeleted>
<LastName>String</LastName>
<PurchaseOrderIdentifier>String</PurchaseOrderIdentifier>
</StaffViewModel>
</Staff>
<Year>0</Year>
<Years xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
<d2p1:SelectListItem>
<d2p1:Disabled>false</d2p1:Disabled>
<d2p1:Group>
<d2p1:Disabled>false</d2p1:Disabled>
<d2p1:Name>String</d2p1:Name>
</d2p1:Group>
<d2p1:Selected>false</d2p1:Selected>
<d2p1:Text>String</d2p1:Text>
<d2p1:Value>String</d2p1:Value>
</d2p1:SelectListItem>
</Years>
</AnnualLeaveCalendarViewModel>