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/UpdateEntityNote HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateEntityNote xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">String</CreatedBy>
<CreatedOn xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">0001-01-01T00:00:00</CreatedOn>
<Exported xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">false</Exported>
<Generated xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">false</Generated>
<LastModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">String</LastModifiedBy>
<LastModifiedOn xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">0001-01-01T00:00:00</LastModifiedOn>
<Position xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">0</Position>
<Active xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">false</Active>
<Description xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">String</Description>
<Euid xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">00000000-0000-0000-0000-000000000000</Euid>
<Id xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">String</Id>
<Label xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">String</Label>
<Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</Meta>
<RefId xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">String</RefId>
<Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">
<d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>
<d2p1:string>String</d2p1:string>
</d2p1:Value>
</d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</Tags>
<NoteText>String</NoteText>
</UpdateEntityNote>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<EntityNoteUpdated xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">String</CreatedBy>
<CreatedOn xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">0001-01-01T00:00:00</CreatedOn>
<Exported xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">false</Exported>
<Generated xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">false</Generated>
<LastModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">String</LastModifiedBy>
<LastModifiedOn xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">0001-01-01T00:00:00</LastModifiedOn>
<Position xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">0</Position>
<Active xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">false</Active>
<Description xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">String</Description>
<Euid xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">00000000-0000-0000-0000-000000000000</Euid>
<Id xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">String</Id>
<Label xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">String</Label>
<Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</Meta>
<RefId xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">String</RefId>
<Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Emun.Tags">
<d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>
<d2p1:string>String</d2p1:string>
</d2p1:Value>
</d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</Tags>
<NoteText>String</NoteText>
</EntityNoteUpdated>