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 /v1/SecuredAudit/{identifier} HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SecuredVehicleAuditResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.Clients.Vehicle">
<VehicleSecuredAudits xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mercedes.OS.Vehicle.Shared.POCO">
<d2p1:VehicleSecuredAuditDetails>
<d2p1:CreationDate>String</d2p1:CreationDate>
<d2p1:Notes>String</d2p1:Notes>
<d2p1:Status>false</d2p1:Status>
<d2p1:UserId>String</d2p1:UserId>
<d2p1:CommissionNumber>String</d2p1:CommissionNumber>
<d2p1:IsBulkUpdate>false</d2p1:IsBulkUpdate>
<d2p1:Vin>String</d2p1:Vin>
</d2p1:VehicleSecuredAuditDetails>
</VehicleSecuredAudits>
</SecuredVehicleAuditResponse>