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.
GET /gethdinfo HTTP/1.1
Host: monitorapi.mcttechnology.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetHDInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MCT.IT.MonitorAPI.ServiceModel.ServiceModel.ReadRequest">
<ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/MCT.IT.MonitorAPI.ServiceModel.ServiceModel.BaseRequestColl">String</ErrorMessage>
<IsSuccess xmlns="http://schemas.datacontract.org/2004/07/MCT.IT.MonitorAPI.ServiceModel.ServiceModel.BaseRequestColl">false</IsSuccess>
<Datetime>0001-01-01T00:00:00</Datetime>
<HarDDiskInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/MCT.IT.MonitorModel.Type">
<d2p1:DetectTime>0001-01-01T00:00:00</d2p1:DetectTime>
<d2p1:HDlist>
<d2p1:HardDiskInfo>
<d2p1:AvailableFreeSpace>0</d2p1:AvailableFreeSpace>
<d2p1:DriveFormat>String</d2p1:DriveFormat>
<d2p1:DriveType>String</d2p1:DriveType>
<d2p1:Name>String</d2p1:Name>
<d2p1:Size>0</d2p1:Size>
<d2p1:VolumeLabel>String</d2p1:VolumeLabel>
</d2p1:HardDiskInfo>
</d2p1:HDlist>
<d2p1:TotalFreeSpace>0</d2p1:TotalFreeSpace>
<d2p1:TotalSize>0</d2p1:TotalSize>
</HarDDiskInfo>
</GetHDInfoResponse>