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.
GET /users/{id} HTTP/1.1
Host: heidak-api.build.exanic.ch
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetUserDetailsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/heilog.ch.Api.ServiceModel.User.Admin">
<User xmlns:d2p1="http://schemas.datacontract.org/2004/07/heilog.ch.Api.Dto.User">
<d2p1:Address>String</d2p1:Address>
<d2p1:Address2>String</d2p1:Address2>
<d2p1:City>String</d2p1:City>
<d2p1:Company>String</d2p1:Company>
<d2p1:CompanyAdditional>String</d2p1:CompanyAdditional>
<d2p1:CountryEnum>Switzerland</d2p1:CountryEnum>
<d2p1:Email>String</d2p1:Email>
<d2p1:EmailNotifications>false</d2p1:EmailNotifications>
<d2p1:FirstName>String</d2p1:FirstName>
<d2p1:Gender>String</d2p1:Gender>
<d2p1:Id>0</d2p1:Id>
<d2p1:InStockOnly>false</d2p1:InStockOnly>
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:IsStandardPharmacist>false</d2p1:IsStandardPharmacist>
<d2p1:IsVisumRequired>false</d2p1:IsVisumRequired>
<d2p1:LabelTemplateId>0</d2p1:LabelTemplateId>
<d2p1:LabelTemplateName>String</d2p1:LabelTemplateName>
<d2p1:LabelVersion>PrimeraLogo</d2p1:LabelVersion>
<d2p1:LanguageCode>de</d2p1:LanguageCode>
<d2p1:LastName>String</d2p1:LastName>
<d2p1:LockedDate>0001-01-01T00:00:00</d2p1:LockedDate>
<d2p1:Permissions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</d2p1:Permissions>
<d2p1:PhoneNumber>String</d2p1:PhoneNumber>
<d2p1:PostalCode>String</d2p1:PostalCode>
<d2p1:PrimaryEmail>String</d2p1:PrimaryEmail>
<d2p1:Roles xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</d2p1:Roles>
<d2p1:Salutation>MISTER</d2p1:Salutation>
<d2p1:ShowEtOH>false</d2p1:ShowEtOH>
<d2p1:UseNewLabel>false</d2p1:UseNewLabel>
</User>
</GetUserDetailsResponse>