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/auth/VerifyAuthentication HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<VerifyAuthentication xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Auth" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<EmunAuthSession xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun">
<ReferrerUrl xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</ReferrerUrl>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<UserAuthId xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</UserAuthId>
<UserAuthName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</UserAuthName>
<UserName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</UserName>
<TwitterUserId xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</TwitterUserId>
<TwitterScreenName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</TwitterScreenName>
<FacebookUserId xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</FacebookUserId>
<FacebookUserName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</FacebookUserName>
<FirstName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</FirstName>
<LastName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</LastName>
<DisplayName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</DisplayName>
<Company xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Company>
<Email xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Email>
<PrimaryEmail xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</PrimaryEmail>
<PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</PhoneNumber>
<BirthDate xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">0001-01-01T00:00:00</BirthDate>
<BirthDateRaw xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</BirthDateRaw>
<Address xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Address>
<Address2 xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Address2>
<City xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</City>
<State xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</State>
<Country xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Country>
<Culture xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Culture>
<FullName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</FullName>
<Gender xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Gender>
<Language xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Language>
<MailAddress xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</MailAddress>
<Nickname xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Nickname>
<PostalCode xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</PostalCode>
<TimeZone xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</TimeZone>
<RequestTokenSecret xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</RequestTokenSecret>
<CreatedAt xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">0001-01-01T00:00:00</CreatedAt>
<LastModified xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">0001-01-01T00:00:00</LastModified>
<Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">
<d2p1:string>String</d2p1:string>
</Roles>
<Permissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">
<d2p1:string>String</d2p1:string>
</Permissions>
<IsAuthenticated xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">false</IsAuthenticated>
<FromToken xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">false</FromToken>
<ProfileUrl xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</ProfileUrl>
<Sequence xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Sequence>
<Tag xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">0</Tag>
<AuthProvider xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</AuthProvider>
<ProviderOAuthAccess xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">
<d2p1:anyType i:nil="true" />
</ProviderOAuthAccess>
<AspMembershipId>00000000-0000-0000-0000-000000000000</AspMembershipId>
<AssetsPath>//s3.amazonaws.com/emuncloud-staticassets/</AssetsPath>
<AvailableBusinessModels>
<BusinessModels>Wholesale</BusinessModels>
<BusinessModels>Retail</BusinessModels>
</AvailableBusinessModels>
<ClientName>Bernhardt Hospitality</ClientName>
<ContactId>String</ContactId>
<CustomerId>String</CustomerId>
<EnvTags>
<EnvTags>Prod</EnvTags>
<EnvTags>Cms</EnvTags>
<EnvTags>NetFramework</EnvTags>
</EnvTags>
<Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<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>
<RetailerId>String</RetailerId>
<SalesRepId>String</SalesRepId>
<Shard>String</Shard>
<Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>
<d2p1:string>String</d2p1:string>
</d2p1:Value>
</d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</Tags>
<VendorGroup>String</VendorGroup>
</EmunAuthSession>