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 /invoice/syncmaxinlog HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetSyncMaxInLogResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Invoice.Query">
<Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Invoice.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:InvoiceDate>0001-01-01T00:00:00</d2p1:InvoiceDate>
<d2p1:InvoiceId>0</d2p1:InvoiceId>
<d2p1:InvoiceMaxDate>0001-01-01T00:00:00</d2p1:InvoiceMaxDate>
<d2p1:InvoiceMaxId>0</d2p1:InvoiceMaxId>
<d2p1:InvoiceMaxNumber>String</d2p1:InvoiceMaxNumber>
<d2p1:InvoiceMinDate>0001-01-01T00:00:00</d2p1:InvoiceMinDate>
<d2p1:InvoiceMinId>0</d2p1:InvoiceMinId>
<d2p1:InvoiceMinNumber>String</d2p1:InvoiceMinNumber>
<d2p1:InvoiceNotSync>0</d2p1:InvoiceNotSync>
<d2p1:InvoiceNotSyncNb>String</d2p1:InvoiceNotSyncNb>
<d2p1:InvoiceNumber>String</d2p1:InvoiceNumber>
<d2p1:InvoiceSync>0</d2p1:InvoiceSync>
<d2p1:InvoiceToSync>0</d2p1:InvoiceToSync>
<d2p1:Status>false</d2p1:Status>
<d2p1:SyncDate>0001-01-01T00:00:00</d2p1:SyncDate>
</Result>
</GetSyncMaxInLogResponse>