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 /supplydemand/offer/{id} HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetSupplyDemandOfferResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.SupplyChain.Query">
<Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.SupplyChain.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:ClientCompanyId>0</d2p1:ClientCompanyId>
<d2p1:ClientCountry>String</d2p1:ClientCountry>
<d2p1:ClientCountryId>0</d2p1:ClientCountryId>
<d2p1:ClientEmail>String</d2p1:ClientEmail>
<d2p1:ClientFlatNumber>String</d2p1:ClientFlatNumber>
<d2p1:ClientName>String</d2p1:ClientName>
<d2p1:ClientPhone>String</d2p1:ClientPhone>
<d2p1:ClientPostalCode>String</d2p1:ClientPostalCode>
<d2p1:ClientStreetName>String</d2p1:ClientStreetName>
<d2p1:ClientStreetNumber>String</d2p1:ClientStreetNumber>
<d2p1:ClientTown>String</d2p1:ClientTown>
<d2p1:ClientVatId>String</d2p1:ClientVatId>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:CurrencyId>0</d2p1:CurrencyId>
<d2p1:ExpirationDate>0001-01-01T00:00:00</d2p1:ExpirationDate>
<d2p1:Gross>0</d2p1:Gross>
<d2p1:IsReceiverDiffrent>false</d2p1:IsReceiverDiffrent>
<d2p1:IssueDate>0001-01-01T00:00:00</d2p1:IssueDate>
<d2p1:Netto>0</d2p1:Netto>
<d2p1:Number>String</d2p1:Number>
<d2p1:Positions>
<d2p1:SupplyDemandOfferPositionDto>
<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:Code>String</d2p1:Code>
<d2p1:DemandPositionId>0</d2p1:DemandPositionId>
<d2p1:Description>String</d2p1:Description>
<d2p1:Discount>0</d2p1:Discount>
<d2p1:Gross>0</d2p1:Gross>
<d2p1:IsDeleted>false</d2p1:IsDeleted>
<d2p1:Netto>0</d2p1:Netto>
<d2p1:OfferId>0</d2p1:OfferId>
<d2p1:ProductId>0</d2p1:ProductId>
<d2p1:Quantity>0</d2p1:Quantity>
<d2p1:SRPUnitPrice>0</d2p1:SRPUnitPrice>
<d2p1:UnitPrice>0</d2p1:UnitPrice>
<d2p1:VatTypeId>0</d2p1:VatTypeId>
</d2p1:SupplyDemandOfferPositionDto>
</d2p1:Positions>
<d2p1:ProviderCompanyId>0</d2p1:ProviderCompanyId>
<d2p1:ReceiverCountry>String</d2p1:ReceiverCountry>
<d2p1:ReceiverCountryId>0</d2p1:ReceiverCountryId>
<d2p1:ReceiverEmail>String</d2p1:ReceiverEmail>
<d2p1:ReceiverFlatNumber>String</d2p1:ReceiverFlatNumber>
<d2p1:ReceiverName>String</d2p1:ReceiverName>
<d2p1:ReceiverPhone>String</d2p1:ReceiverPhone>
<d2p1:ReceiverPostalCode>String</d2p1:ReceiverPostalCode>
<d2p1:ReceiverStreetName>String</d2p1:ReceiverStreetName>
<d2p1:ReceiverStreetNumber>String</d2p1:ReceiverStreetNumber>
<d2p1:ReceiverTown>String</d2p1:ReceiverTown>
<d2p1:ReceiverVatId>String</d2p1:ReceiverVatId>
<d2p1:Status>0</d2p1:Status>
<d2p1:SupplyDemandId>0</d2p1:SupplyDemandId>
</Result>
</GetSupplyDemandOfferResponse>