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/measurements/{Keys} HTTP/1.1
Host: mdn.bazefield.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ReadMeasurements xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BazeField.Historian.DataServices">
<ClientRequestHandle>String</ClientRequestHandle>
<Keys xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</Keys>
</ReadMeasurements>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ReadReplyList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BazeField.Historian.DataServices">
<measurements>
<Measurement>
<Error>String</Error>
<MeasurementId>0</MeasurementId>
<Value>
<q>0</q>
<t>0</t>
<t_local xmlns:d5p1="http://schemas.datacontract.org/2004/07/System">
<d5p1:DateTime>0001-01-01T00:00:00Z</d5p1:DateTime>
<d5p1:OffsetMinutes>0</d5p1:OffsetMinutes>
</t_local>
<v />
</Value>
</Measurement>
</measurements>
<replyInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/Bazefield.WebService.Common">
<d2p1:ClientRequestHandle>String</d2p1:ClientRequestHandle>
<d2p1:Error>String</d2p1:Error>
<d2p1:RcvTime>0</d2p1:RcvTime>
<d2p1:ReplyTime>0</d2p1:ReplyTime>
</replyInfo>
</ReadReplyList>