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 /api/firebase/getOrders HTTP/1.1
Host: api.pos365.vn
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<FireBaseGetOrders xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.Services">
<RowKey xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</RowKey>
</FireBaseGetOrders>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<FireBaseResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.Services">
<code>String</code>
<data xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.Data">
<d2p1:RoomStorage>
<d2p1:Compress>false</d2p1:Compress>
<d2p1:ETag>String</d2p1:ETag>
<d2p1:JsonContent>String</d2p1:JsonContent>
<d2p1:PartitionKey>String</d2p1:PartitionKey>
<d2p1:Position>String</d2p1:Position>
<d2p1:RoomId>0</d2p1:RoomId>
<d2p1:RowKey>String</d2p1:RowKey>
<d2p1:Timestamp xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
<d4p1:DateTime>0001-01-01T00:00:00Z</d4p1:DateTime>
<d4p1:OffsetMinutes>0</d4p1:OffsetMinutes>
</d2p1:Timestamp>
<d2p1:Version>0</d2p1:Version>
</d2p1:RoomStorage>
</data>
<message>String</message>
</FireBaseResults>