HTTP + SOAP12
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /soap12 HTTP/1.1
Host: api.dev.bnn.us
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<SaveAppSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Requests.Mobile">
<Settings xmlns:d2p1="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Dto.Mongo">
<d2p1:AppSettings>
<d2p1:AllowTrackLocation>false</d2p1:AllowTrackLocation>
<d2p1:AutoMarkAsRead>false</d2p1:AutoMarkAsRead>
<d2p1:DeviceFingerPrint>String</d2p1:DeviceFingerPrint>
<d2p1:DeviceToken>String</d2p1:DeviceToken>
<d2p1:DisableDataSubmit>false</d2p1:DisableDataSubmit>
<d2p1:FontScale>0</d2p1:FontScale>
<d2p1:JobFields>String</d2p1:JobFields>
<d2p1:JobMediaMute>false</d2p1:JobMediaMute>
<d2p1:JobMute>false</d2p1:JobMute>
<d2p1:JobProximity>0</d2p1:JobProximity>
<d2p1:JobSound>String</d2p1:JobSound>
<d2p1:KeywordAlerts>
<d2p1:KeywordAlert>
<d2p1:Address>String</d2p1:Address>
<d2p1:Box>String</d2p1:Box>
<d2p1:City>String</d2p1:City>
<d2p1:County>String</d2p1:County>
<d2p1:Id>String</d2p1:Id>
<d2p1:Incident>String</d2p1:Incident>
<d2p1:JobId>0</d2p1:JobId>
<d2p1:Reporters>String</d2p1:Reporters>
<d2p1:State>String</d2p1:State>
<d2p1:Story>String</d2p1:Story>
<d2p1:Zip>String</d2p1:Zip>
</d2p1:KeywordAlert>
</d2p1:KeywordAlerts>
<d2p1:KeywordAlertsMute>false</d2p1:KeywordAlertsMute>
<d2p1:KeywordAlertsSound>String</d2p1:KeywordAlertsSound>
<d2p1:LoggedIn>false</d2p1:LoggedIn>
<d2p1:MessageMute>false</d2p1:MessageMute>
<d2p1:MessageSound>String</d2p1:MessageSound>
<d2p1:ProximityMute>false</d2p1:ProximityMute>
<d2p1:ProximitySound>String</d2p1:ProximitySound>
<d2p1:ScheduledSleep>false</d2p1:ScheduledSleep>
<d2p1:ScheduledSleepFrom>String</d2p1:ScheduledSleepFrom>
<d2p1:ScheduledSleepTo>String</d2p1:ScheduledSleepTo>
<d2p1:ScheduledTimeZoneOffset>0</d2p1:ScheduledTimeZoneOffset>
<d2p1:SleepMode>false</d2p1:SleepMode>
<d2p1:Use24HourFormat>false</d2p1:Use24HourFormat>
<d2p1:WeatherFields>String</d2p1:WeatherFields>
<d2p1:WeatherMute>false</d2p1:WeatherMute>
<d2p1:WeatherSound>String</d2p1:WeatherSound>
</d2p1:AppSettings>
<d2p1:Badges>
<d2p1:Chats>0</d2p1:Chats>
<d2p1:Incidents>0</d2p1:Incidents>
<d2p1:Message>0</d2p1:Message>
<d2p1:Weather>0</d2p1:Weather>
</d2p1:Badges>
<d2p1:Chats xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringChatl1mkw_Pg1>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>
<d2p1:Badge>0</d2p1:Badge>
<d2p1:ChatId>String</d2p1:ChatId>
<d2p1:Mute>false</d2p1:Mute>
<d2p1:Name>String</d2p1:Name>
<d2p1:Sound>String</d2p1:Sound>
<d2p1:Subject>String</d2p1:Subject>
</d3p1:Value>
</d3p1:KeyValueOfstringChatl1mkw_Pg1>
</d2p1:Chats>
<d2p1:Id>String</d2p1:Id>
<d2p1:Username>String</d2p1:Username>
</Settings>
</SaveAppSettings>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<BooleanResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Responses">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
</d2p1:ResponseError>
</d2p1:Errors>
</ResponseStatus>
<Data>false</Data>
</BooleanResponse>
</soap12:Body>
</soap12:Envelope>