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/objects/points/insert HTTP/1.1
Host: mdn.bazefield.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<InsertObjectPointValuesList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bazefield.Domain.Data.WebService.Request">
<ClientRequestHandle>String</ClientRequestHandle>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Bazefield.Domain.Data.Entity">
<d2p1:ObjectPointValues>
<d2p1:ObjectId>String</d2p1:ObjectId>
<d2p1:Points xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringArrayOfTimeSeriesValuehB_SZ0GFW>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value xmlns:d6p1="http://schemas.datacontract.org/2004/07/BazeField.Historian.DataServices">
<d6p1:TimeSeriesValue>
<d6p1:q>0</d6p1:q>
<d6p1:t>0</d6p1:t>
<d6p1:t_local xmlns:d8p1="http://schemas.datacontract.org/2004/07/System">
<d8p1:DateTime>0001-01-01T00:00:00Z</d8p1:DateTime>
<d8p1:OffsetMinutes>0</d8p1:OffsetMinutes>
</d6p1:t_local>
<d6p1:v />
</d6p1:TimeSeriesValue>
</d4p1:Value>
</d4p1:KeyValueOfstringArrayOfTimeSeriesValuehB_SZ0GFW>
</d2p1:Points>
</d2p1:ObjectPointValues>
</Data>
<InsertMode>0</InsertMode>
</InsertObjectPointValuesList>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<DomainPointValuesInsertResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bazefield.Domain.Data.WebService.Response">
<ReplyInfo xmlns="http://schemas.datacontract.org/2004/07/Bazefield.WebService.Common">
<ClientRequestHandle>String</ClientRequestHandle>
<Error>String</Error>
<RcvTime>0</RcvTime>
<ReplyTime>0</ReplyTime>
</ReplyInfo>
<Inserted>0</Inserted>
<Published>0</Published>
<Snapshot>0</Snapshot>
</DomainPointValuesInsertResponse>