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/PricingToolAprRequest HTTP/1.1
Host: mobileapidevsw.greysheet.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PricingToolAprRequest 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>
<CustId>0</CustId>
<EntryId>0</EntryId>
<Grade>String</Grade>
<IsCac>false</IsCac>
<Skip>0</Skip>
<Take>0</Take>
</PricingToolAprRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PricingToolAprResponse 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>
<AccessRemaining>0</AccessRemaining>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cdn.MobileApi.Models">
<d2p1:PricingAprDto>
<d2p1:Amount>String</d2p1:Amount>
<d2p1:AuctionHouse>String</d2p1:AuctionHouse>
<d2p1:AuctionHouseAbbrev>String</d2p1:AuctionHouseAbbrev>
<d2p1:AuctionHouseImageUrl>String</d2p1:AuctionHouseImageUrl>
<d2p1:AuctionHouseName>String</d2p1:AuctionHouseName>
<d2p1:Description>String</d2p1:Description>
<d2p1:Grade>String</d2p1:Grade>
<d2p1:ImageUrl>String</d2p1:ImageUrl>
<d2p1:Images xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</d2p1:Images>
<d2p1:IsCac>String</d2p1:IsCac>
<d2p1:IsPlus>String</d2p1:IsPlus>
<d2p1:ItemUrl>String</d2p1:ItemUrl>
<d2p1:LinkUrl>String</d2p1:LinkUrl>
<d2p1:SaleDate>0001-01-01T00:00:00</d2p1:SaleDate>
<d2p1:SellDate>String</d2p1:SellDate>
<d2p1:SellDateRaw>0001-01-01T00:00:00</d2p1:SellDateRaw>
</d2p1:PricingAprDto>
</Data>
<PermitAccess>false</PermitAccess>
</PricingToolAprResponse>