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 /costinvoice/position HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ListCostInvoicePositionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.CostInvoice.Query">
<Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.CostInvoice.Model" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.GlobalDto.Base">
<CreatedById xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</CreatedById>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0001-01-01T00:00:00</CreatedDate>
<Id xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</Id>
<ModifiedById xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</ModifiedById>
<ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0001-01-01T00:00:00</ModifiedDate>
<d2p1:CategoryId>0</d2p1:CategoryId>
<d2p1:CategoryName>String</d2p1:CategoryName>
<d2p1:Code>String</d2p1:Code>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:CurrencyId>0</d2p1:CurrencyId>
<d2p1:Gross>0</d2p1:Gross>
<d2p1:InvoiceId>0</d2p1:InvoiceId>
<d2p1:IsBefore>false</d2p1:IsBefore>
<d2p1:IsDeleted>false</d2p1:IsDeleted>
<d2p1:IsTaxableId>0</d2p1:IsTaxableId>
<d2p1:IsTaxableName>String</d2p1:IsTaxableName>
<d2p1:IsUpdated>false</d2p1:IsUpdated>
<d2p1:Name>String</d2p1:Name>
<d2p1:Netto>0</d2p1:Netto>
<d2p1:PosCorrId>0</d2p1:PosCorrId>
<d2p1:ProductId>0</d2p1:ProductId>
<d2p1:Quantity>0</d2p1:Quantity>
<d2p1:RecalculateVat>false</d2p1:RecalculateVat>
<d2p1:TaxableKindId>0</d2p1:TaxableKindId>
<d2p1:TaxableKindName>String</d2p1:TaxableKindName>
<d2p1:TaxableTypeId>0</d2p1:TaxableTypeId>
<d2p1:TaxableTypeName>String</d2p1:TaxableTypeName>
<d2p1:Unit>String</d2p1:Unit>
<d2p1:UnitId>0</d2p1:UnitId>
<d2p1:UnitPrice>0</d2p1:UnitPrice>
<d2p1:Vat23>0</d2p1:Vat23>
<d2p1:Vat5>0</d2p1:Vat5>
<d2p1:Vat8>0</d2p1:Vat8>
<d2p1:VatTypeId>0</d2p1:VatTypeId>
</Result>
<MultipleResult xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.CostInvoice.Model" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.GlobalDto.Base" />
<Offset xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.GlobalDto.Base">0</Offset>
<Total xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.GlobalDto.Base">0</Total>
</ListCostInvoicePositionResponse>