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/Orders/DetDocuments/{Id} HTTP/1.1
Host: apex.nikoratrade.ge
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetCrmOrderDetDocumentsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Crm.Orders">
<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 xmlns:d2p1="http://schemas.datacontract.org/2004/07/Apex.Services.Accounting">
<d2p1:DocView>
<d2p1:DocID>String</d2p1:DocID>
<d2p1:DocType>0</d2p1:DocType>
<d2p1:BookType>0</d2p1:BookType>
<d2p1:OperID>String</d2p1:OperID>
<d2p1:Currency>
<d2p1:CurrencyID>String</d2p1:CurrencyID>
<d2p1:Name>String</d2p1:Name>
<d2p1:NameEn>String</d2p1:NameEn>
<d2p1:Code>String</d2p1:Code>
<d2p1:CurType>0</d2p1:CurType>
<d2p1:ReCalc>false</d2p1:ReCalc>
<d2p1:LastDate>0001-01-01T00:00:00</d2p1:LastDate>
<d2p1:Rate>0</d2p1:Rate>
<d2p1:Spend>false</d2p1:Spend>
<d2p1:CurrencyCnt>0</d2p1:CurrencyCnt>
<d2p1:Currency_N>String</d2p1:Currency_N>
<d2p1:LDefault>false</d2p1:LDefault>
</d2p1:Currency>
<d2p1:DBView>
<d2p1:Acc>String</d2p1:Acc>
<d2p1:Name>String</d2p1:Name>
<d2p1:SN>String</d2p1:SN>
<d2p1:WarehouseAddress>String</d2p1:WarehouseAddress>
<d2p1:Address>String</d2p1:Address>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:AccWithName>String - String</d2p1:AccWithName>
<d2p1:VatType>0</d2p1:VatType>
<d2p1:BranchId>0</d2p1:BranchId>
</d2p1:DBView>
<d2p1:CRView>
<d2p1:Acc>String</d2p1:Acc>
<d2p1:Name>String</d2p1:Name>
<d2p1:SN>String</d2p1:SN>
<d2p1:WarehouseAddress>String</d2p1:WarehouseAddress>
<d2p1:Address>String</d2p1:Address>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:AccWithName>String - String</d2p1:AccWithName>
<d2p1:VatType>0</d2p1:VatType>
<d2p1:BranchId>0</d2p1:BranchId>
</d2p1:CRView>
<d2p1:DDate>0001-01-01T00:00:00</d2p1:DDate>
<d2p1:NumberIn>String</d2p1:NumberIn>
<d2p1:NumberOut>String</d2p1:NumberOut>
<d2p1:RSWaybillNum>String</d2p1:RSWaybillNum>
<d2p1:DocWaybillNum>String</d2p1:DocWaybillNum>
<d2p1:RSWaybillID>0</d2p1:RSWaybillID>
<d2p1:Vg>0</d2p1:Vg>
<d2p1:Contents>String</d2p1:Contents>
<d2p1:VgCurrent>0</d2p1:VgCurrent>
<d2p1:OpDetId>String</d2p1:OpDetId>
<d2p1:CUser>String</d2p1:CUser>
<d2p1:BookNote>String</d2p1:BookNote>
<d2p1:TaxDocId>0</d2p1:TaxDocId>
<d2p1:TaxDocNum>String</d2p1:TaxDocNum>
<d2p1:TaxDocSerie>String</d2p1:TaxDocSerie>
</d2p1:DocView>
</Result>
</GetCrmOrderDetDocumentsResponse>