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 /ea/status HTTP/1.1
Host: galaxymobile.api.dev.86degrees.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<EaStatusUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebService.ServiceModel">
<ApiKey>String</ApiKey>
<IncidentReference>String</IncidentReference>
<Message>String</Message>
<NotificationMetaData>
<Amount>0</Amount>
<ClosedDateAndTime xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
<d3p1:DateTime>0001-01-01T00:00:00Z</d3p1:DateTime>
<d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
</ClosedDateAndTime>
<DestinationCountry>String</DestinationCountry>
<DestinationDescription>String</DestinationDescription>
<DestinationProvince>String</DestinationProvince>
<DestinationStreetName>String</DestinationStreetName>
<DestinationStreetNumber>String</DestinationStreetNumber>
<DestinationSuburb>String</DestinationSuburb>
<DestinationTown>String</DestinationTown>
<DestinationTripLocationLat>0</DestinationTripLocationLat>
<DestinationTripLocationLong>0</DestinationTripLocationLong>
<EstimateArrivalDateAndTime xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
<d3p1:DateTime>0001-01-01T00:00:00Z</d3p1:DateTime>
<d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
</EstimateArrivalDateAndTime>
<IncidentCountry>String</IncidentCountry>
<IncidentDateTime xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
<d3p1:DateTime>0001-01-01T00:00:00Z</d3p1:DateTime>
<d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
</IncidentDateTime>
<IncidentDescription>String</IncidentDescription>
<IncidentProvince>String</IncidentProvince>
<IncidentStreetName>String</IncidentStreetName>
<IncidentStreetNumber>String</IncidentStreetNumber>
<IncidentSuburb>String</IncidentSuburb>
<IncidentTown>String</IncidentTown>
<IncidentTripLocationLat>0</IncidentTripLocationLat>
<IncidentTripLocationLong>0</IncidentTripLocationLong>
<MemberIdNumber>String</MemberIdNumber>
<MemberName>String</MemberName>
<MemberSurname>String</MemberSurname>
<PolicyNumber>String</PolicyNumber>
<Quantity>0</Quantity>
<ReferenceNumber>String</ReferenceNumber>
<ServiceProviderName>String</ServiceProviderName>
<ServiceSpecification>String</ServiceSpecification>
<Vat>0</Vat>
<VehicleMake>String</VehicleMake>
<VehicleModel>String</VehicleModel>
<VehicleRegistration>String</VehicleRegistration>
</NotificationMetaData>
<Type>String</Type>
</EaStatusUpdateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ApiServiceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">
<Description>String</Description>
<Heading>String</Heading>
<ModelState />
<WasSuccessful>false</WasSuccessful>
</ApiServiceResponse>