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 /xml/reply/DealerDirectoryRequest HTTP/1.1
Host: mobileapidev.greysheet.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<DealerDirectoryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.MobileApi.RequestObjects">
<Id>0</Id>
<OrderBy xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</OrderBy>
<OrderDirections>
<SortOrders>Asc</SortOrders>
</OrderDirections>
<Categories>String</Categories>
<City>String</City>
<CompanyName>String</CompanyName>
<Keywords>String</Keywords>
<MobileHomePage>false</MobileHomePage>
<Name>String</Name>
<NonSpecialsOnly>false</NonSpecialsOnly>
<Permalink>String</Permalink>
<Skip>0</Skip>
<SpecialsOnly>false</SpecialsOnly>
<State>String</State>
<Take>0</Take>
</DealerDirectoryRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<DealerDirectoryResponse 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:DealerDirectoryDto>
<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:Fullname>String</d2p1:Fullname>
<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:DealerDirectoryDto>
</Data>
</DealerDirectoryResponse>