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 /Crm/StaffParams/{Id} HTTP/1.1
Host: apex.nikoratrade.ge
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetStaffParamsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Crm">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<Result>
<Person_id>0</Person_id>
<Dep_id>0</Dep_id>
<Post_id>0</Post_id>
<Salary>0</Salary>
<No_income_tax>false</No_income_tax>
<Cr_acc>String</Cr_acc>
<Db_acc>String</Db_acc>
<Bank_id>String</Bank_id>
<Bank_acc>String</Bank_acc>
<Staff_status>0</Staff_status>
<Exempt_income_amount>0</Exempt_income_amount>
<Exempt_income_percent>0</Exempt_income_percent>
<Region>0</Region>
<Pay_acc>String</Pay_acc>
<Has_pension>0</Has_pension>
<Excempt_income_begin_date>0001-01-01T00:00:00</Excempt_income_begin_date>
<Company_insurance_amount>0</Company_insurance_amount>
<Personal_insurance_amount>0</Personal_insurance_amount>
<Company_expense_acc>String</Company_expense_acc>
<Personal_expense_acc>String</Personal_expense_acc>
<Insurance_company_acc>String</Insurance_company_acc>
<Pension_expense_acc>String</Pension_expense_acc>
</Result>
</GetStaffParamsResponse>