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/UnlockUser HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UnlockUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Users">
<Id>0</Id>
</UnlockUser>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<UserUnlocked xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Users">
<Address xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Address>
<Address2 xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Address2>
<BirthDate xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0001-01-01T00:00:00</BirthDate>
<BirthDateRaw xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</BirthDateRaw>
<City xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</City>
<Company xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Company>
<Country xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Country>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0001-01-01T00:00:00</CreatedDate>
<Culture xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Culture>
<DigestHa1Hash xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</DigestHa1Hash>
<DisplayName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</DisplayName>
<Email xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Email>
<FirstName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</FirstName>
<FullName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</FullName>
<Gender xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Gender>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0</Id>
<InvalidLoginAttempts xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0</InvalidLoginAttempts>
<Language xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Language>
<LastLoginAttempt xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0001-01-01T00:00:00</LastLoginAttempt>
<LastName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</LastName>
<LockedDate xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0001-01-01T00:00:00</LockedDate>
<MailAddress xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</MailAddress>
<Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>Tags</d2p1:Key>
<d2p1:Value>{String:[String]}</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</Meta>
<ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0001-01-01T00:00:00</ModifiedDate>
<Nickname xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Nickname>
<PasswordHash xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</PasswordHash>
<Permissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">
<d2p1:string>String</d2p1:string>
</Permissions>
<PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</PhoneNumber>
<PostalCode xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</PostalCode>
<PrimaryEmail xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</PrimaryEmail>
<RecoveryToken xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</RecoveryToken>
<RefId xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0</RefId>
<RefIdStr xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</RefIdStr>
<Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">
<d2p1:string>String</d2p1:string>
</Roles>
<Salt xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Salt>
<State xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</State>
<TimeZone xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</TimeZone>
<UserName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</UserName>
<Shard xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Shard>
<AspMembershipId xmlns="http://schemas.datacontract.org/2004/07/Emun">00000000-0000-0000-0000-000000000000</AspMembershipId>
<ContactId xmlns="http://schemas.datacontract.org/2004/07/Emun">String</ContactId>
<RetailerId xmlns="http://schemas.datacontract.org/2004/07/Emun">String</RetailerId>
<SalesRepId xmlns="http://schemas.datacontract.org/2004/07/Emun">String</SalesRepId>
<Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Emun">
<d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>
<d2p1:string>String</d2p1:string>
</d2p1:Value>
</d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</Tags>
</UserUnlocked>