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 /service/InsertActivityRDB HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<InsertActivityRDB xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.RestDb">
<ActivityType>String</ActivityType>
<Alarm>false</Alarm>
<AlarmInterval>0</AlarmInterval>
<AlarmUnits>0</AlarmUnits>
<AllDay>false</AllDay>
<CaseNumber>String</CaseNumber>
<Complete>false</Complete>
<Completed>0001-01-01T00:00:00</Completed>
<ContactName>String</ContactName>
<ContactType>String</ContactType>
<CreationDate>0001-01-01T00:00:00</CreationDate>
<Custom10STR>String</Custom10STR>
<Custom1STR>String</Custom1STR>
<Custom2STR>String</Custom2STR>
<Custom3STR>String</Custom3STR>
<Custom4STR>String</Custom4STR>
<Custom5STR>String</Custom5STR>
<Custom6STR>String</Custom6STR>
<Custom7STR>String</Custom7STR>
<Custom8STR>String</Custom8STR>
<Custom9STR>String</Custom9STR>
<CustomerId>String</CustomerId>
<CustomerName>String</CustomerName>
<Description>String</Description>
<DownloadedHH>false</DownloadedHH>
<DownloadedPC>false</DownloadedPC>
<Email>String</Email>
<End>0001-01-01T00:00:00</End>
<ExpectedDollar>0</ExpectedDollar>
<Id>String</Id>
<LocalTimeZoneId>String</LocalTimeZoneId>
<Location>String</Location>
<Locked>false</Locked>
<MasterId>String</MasterId>
<MobileNumber>String</MobileNumber>
<MobileReminder>false</MobileReminder>
<ModelNumber>String</ModelNumber>
<Modified>false</Modified>
<Notes>String</Notes>
<Private>false</Private>
<ProspectId>String</ProspectId>
<RegionId>String</RegionId>
<Result>String</Result>
<ScheduledBy>String</ScheduledBy>
<ServerId>String</ServerId>
<ShipId>String</ShipId>
<ShowCode>String</ShowCode>
<Start>0001-01-01T00:00:00</Start>
<Status>String</Status>
<Tier1>String</Tier1>
<Tier2>String</Tier2>
<Tier3>String</Tier3>
<Tier4>String</Tier4>
<Tier5>String</Tier5>
<TimeZoneId>String</TimeZoneId>
<Uploaded>false</Uploaded>
<Username>String</Username>
<_Modified>0001-01-01T00:00:00</_Modified>
</InsertActivityRDB>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">0</long>