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 /EventCalendar HTTP/1.1
Host: mobileapidevsw.greysheet.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<EventCalendarResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.MobileApi.ResponseObjects">
<CachedResponse>false</CachedResponse>
<ErrorText>String</ErrorText>
<OpCode>0</OpCode>
<RequestTime>String</RequestTime>
<ResponseTime>String</ResponseTime>
<Total>0</Total>
<TotalExecutionTime>String</TotalExecutionTime>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cdn.MobileApi.Models">
<d2p1:CalendarEventDto>
<d2p1:_x003C_Active_x003E_k__BackingField>false</d2p1:_x003C_Active_x003E_k__BackingField>
<d2p1:_x003C_Id_x003E_k__BackingField>0</d2p1:_x003C_Id_x003E_k__BackingField>
<d2p1:_x003C_LastModBy_x003E_k__BackingField>String</d2p1:_x003C_LastModBy_x003E_k__BackingField>
<d2p1:_x003C_LastMod_x003E_k__BackingField>0001-01-01T00:00:00</d2p1:_x003C_LastMod_x003E_k__BackingField>
<d2p1:AdmissionFee>String</d2p1:AdmissionFee>
<d2p1:CalendarEventDefinitionId>0</d2p1:CalendarEventDefinitionId>
<d2p1:ClassNames>String</d2p1:ClassNames>
<d2p1:ContactEmail>String</d2p1:ContactEmail>
<d2p1:ContactName>String</d2p1:ContactName>
<d2p1:ContactPhone>String</d2p1:ContactPhone>
<d2p1:EventAddress1>String</d2p1:EventAddress1>
<d2p1:EventAddress2>String</d2p1:EventAddress2>
<d2p1:EventBody>String</d2p1:EventBody>
<d2p1:EventCity>String</d2p1:EventCity>
<d2p1:EventContact>
<d2p1:ActiveSubscriber>false</d2p1:ActiveSubscriber>
<d2p1:ActiveSubscriptions>String</d2p1:ActiveSubscriptions>
<d2p1:Address1>String</d2p1:Address1>
<d2p1:Address2>String</d2p1:Address2>
<d2p1:AuthorBio>String</d2p1:AuthorBio>
<d2p1:AuthorImageUrl>String</d2p1:AuthorImageUrl>
<d2p1:AvatarUrl>String</d2p1:AvatarUrl>
<d2p1:Categories>
<d2p1:XCategoryDto>
<d2p1:_x003C_Active_x003E_k__BackingField>false</d2p1:_x003C_Active_x003E_k__BackingField>
<d2p1:_x003C_Id_x003E_k__BackingField>0</d2p1:_x003C_Id_x003E_k__BackingField>
<d2p1:_x003C_LastModBy_x003E_k__BackingField>String</d2p1:_x003C_LastModBy_x003E_k__BackingField>
<d2p1:_x003C_LastMod_x003E_k__BackingField>0001-01-01T00:00:00</d2p1:_x003C_LastMod_x003E_k__BackingField>
<d2p1:_x003C_CategoryName_x003E_k__BackingField>String</d2p1:_x003C_CategoryName_x003E_k__BackingField>
<d2p1:_x003C_CategoryPermaLink_x003E_k__BackingField>String</d2p1:_x003C_CategoryPermaLink_x003E_k__BackingField>
<d2p1:_x003C_Icon_x003E_k__BackingField>String</d2p1:_x003C_Icon_x003E_k__BackingField>
<d2p1:_x003C_IsValidBlog_x003E_k__BackingField>false</d2p1:_x003C_IsValidBlog_x003E_k__BackingField>
<d2p1:_x003C_IsValidDealerDirectory_x003E_k__BackingField>false</d2p1:_x003C_IsValidDealerDirectory_x003E_k__BackingField>
<d2p1:_x003C_IsValidEvents_x003E_k__BackingField>false</d2p1:_x003C_IsValidEvents_x003E_k__BackingField>
<d2p1:_x003C_SortOrder_x003E_k__BackingField>0</d2p1:_x003C_SortOrder_x003E_k__BackingField>
</d2p1:XCategoryDto>
</d2p1:Categories>
<d2p1:City>String</d2p1:City>
<d2p1:Company>String</d2p1:Company>
<d2p1:CompanyDescription>String</d2p1:CompanyDescription>
<d2p1:Country>String</d2p1:Country>
<d2p1:EbayId>String</d2p1:EbayId>
<d2p1:EmailAddress>String</d2p1:EmailAddress>
<d2p1:Facebook>String</d2p1:Facebook>
<d2p1:FirstName>String</d2p1:FirstName>
<d2p1:HasAvatar>false</d2p1:HasAvatar>
<d2p1:Id>0</d2p1:Id>
<d2p1:IndustryAffiliations>String</d2p1:IndustryAffiliations>
<d2p1:Instagram>String</d2p1:Instagram>
<d2p1:IsActiveCdnx>false</d2p1:IsActiveCdnx>
<d2p1:IsFeaturedDealer>false</d2p1:IsFeaturedDealer>
<d2p1:LastName>String</d2p1:LastName>
<d2p1:Permalink>String</d2p1:Permalink>
<d2p1:PhoneNumber>String</d2p1:PhoneNumber>
<d2p1:ProvinceRegion>String</d2p1:ProvinceRegion>
<d2p1:ShowAuthorAsCompany>false</d2p1:ShowAuthorAsCompany>
<d2p1:ShowAuthorImage>false</d2p1:ShowAuthorImage>
<d2p1:ShowAvatarImage>false</d2p1:ShowAvatarImage>
<d2p1:SortName>String</d2p1:SortName>
<d2p1:StateAbbr>String</d2p1:StateAbbr>
<d2p1:Twitter>String</d2p1:Twitter>
<d2p1:WebsiteUrl>String</d2p1:WebsiteUrl>
<d2p1:ZipCode>String</d2p1:ZipCode>
</d2p1:EventContact>
<d2p1:EventEnd>0001-01-01T00:00:00</d2p1:EventEnd>
<d2p1:EventEndDisplay>String</d2p1:EventEndDisplay>
<d2p1:EventEndIso>String</d2p1:EventEndIso>
<d2p1:EventHours>String</d2p1:EventHours>
<d2p1:EventImageUrl>String</d2p1:EventImageUrl>
<d2p1:EventLocation>String</d2p1:EventLocation>
<d2p1:EventName>String</d2p1:EventName>
<d2p1:EventPermalink>String</d2p1:EventPermalink>
<d2p1:EventShortDescription>String</d2p1:EventShortDescription>
<d2p1:EventStart>0001-01-01T00:00:00</d2p1:EventStart>
<d2p1:EventStartDisplay>String</d2p1:EventStartDisplay>
<d2p1:EventStartIso>String</d2p1:EventStartIso>
<d2p1:EventState>String</d2p1:EventState>
<d2p1:EventType>String</d2p1:EventType>
<d2p1:EventUrl>String</d2p1:EventUrl>
<d2p1:EventZipCode>String</d2p1:EventZipCode>
<d2p1:IsCancelled>false</d2p1:IsCancelled>
<d2p1:RssImageUrl>String</d2p1:RssImageUrl>
</d2p1:CalendarEventDto>
</Data>
<JsonEvents xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cdn.MobileApi.Models">
<d2p1:CalendarEventJsonDto>
<d2p1:classNames xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</d2p1:classNames>
<d2p1:description>String</d2p1:description>
<d2p1:end>String</d2p1:end>
<d2p1:id>String</d2p1:id>
<d2p1:start>String</d2p1:start>
<d2p1:title>String</d2p1:title>
<d2p1:url>String</d2p1:url>
</d2p1:CalendarEventJsonDto>
</JsonEvents>
</EventCalendarResponse>