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 /xml/reply/RecipientRequest HTTP/1.1
Host: elm.alertsense.com
Content-Type: application/xml
Content-Length: length
<RootObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlertSense.Elm.ServiceModel.Mapping_DTOs">
<countsOnly>false</countsOnly>
<geoJSON>
<features>
<Feature>
<geometry>
<coordinates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:ArrayOfArrayOfdouble>
<d6p1:ArrayOfdouble>
<d6p1:double>0</d6p1:double>
</d6p1:ArrayOfdouble>
</d6p1:ArrayOfArrayOfdouble>
</coordinates>
<type>String</type>
</geometry>
<properties />
<type>String</type>
</Feature>
</features>
<type>String</type>
</geoJSON>
</RootObject>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<RecipientResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlertSense.Elm.ServiceModel.Mapping_DTOs">
<SourceRecords>
<SourceRecord>
<Count>0</Count>
<Label>String</Label>
<Recipients>
<Recipient>
<LatLng>
<Lat>0</Lat>
<Lng>0</Lng>
</LatLng>
<Number>String</Number>
</Recipient>
</Recipients>
<SourceId>0</SourceId>
<Status>String</Status>
</SourceRecord>
</SourceRecords>
</RecipientResponse>