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 /myprofile HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<MyProfileResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.ProfileUser.Query">
<Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.ProfileUser.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:Company>
<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:BankAccount>
<d2p1:ProfileBankAccountDto>
<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:AccountNumber>String</d2p1:AccountNumber>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:CurrencyId>0</d2p1:CurrencyId>
<d2p1:IsDefault>false</d2p1:IsDefault>
<d2p1:IsTaxAccount>false</d2p1:IsTaxAccount>
<d2p1:Name>String</d2p1:Name>
<d2p1:Swift>String</d2p1:Swift>
</d2p1:ProfileBankAccountDto>
</d2p1:BankAccount>
<d2p1:Country>String</d2p1:Country>
<d2p1:CountryId>0</d2p1:CountryId>
<d2p1:DefaultCurrency>String</d2p1:DefaultCurrency>
<d2p1:DefaultCurrencyId>0</d2p1:DefaultCurrencyId>
<d2p1:Description>String</d2p1:Description>
<d2p1:Email>String</d2p1:Email>
<d2p1:FaxNumber>String</d2p1:FaxNumber>
<d2p1:Krs>String</d2p1:Krs>
<d2p1:MaxFileSize>0</d2p1:MaxFileSize>
<d2p1:MobileNumber>String</d2p1:MobileNumber>
<d2p1:Name>String</d2p1:Name>
<d2p1:Nip>String</d2p1:Nip>
<d2p1:PhoneNumber>String</d2p1:PhoneNumber>
<d2p1:PhoneNumber1>String</d2p1:PhoneNumber1>
<d2p1:PostalCode>String</d2p1:PostalCode>
<d2p1:RecipientCType>String</d2p1:RecipientCType>
<d2p1:Regon>String</d2p1:Regon>
<d2p1:StorageSize>0</d2p1:StorageSize>
<d2p1:StreetFlatNumber>String</d2p1:StreetFlatNumber>
<d2p1:StreetName>String</d2p1:StreetName>
<d2p1:StreetNumber>String</d2p1:StreetNumber>
<d2p1:Town>String</d2p1:Town>
<d2p1:TypeId>0</d2p1:TypeId>
<d2p1:WebSite>String</d2p1:WebSite>
</d2p1:Company>
<d2p1:Description>String</d2p1:Description>
<d2p1:Email>String</d2p1:Email>
<d2p1:IsActivated>false</d2p1:IsActivated>
<d2p1:IsCompanyDbReady>false</d2p1:IsCompanyDbReady>
<d2p1:Name>String</d2p1:Name>
<d2p1:Password>String</d2p1:Password>
<d2p1:Surname>String</d2p1:Surname>
</Result>
</MyProfileResponse>