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.
POST /Contacts_RequestPerson HTTP/1.1
Host: wbs.e-teleport.ru
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<Contacts_RequestPerson xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
<Branches>
<Branch_Add>
<BranchName>String</BranchName>
<CompanyId>String</CompanyId>
<Owner>String</Owner>
<OwnerType>contact</OwnerType>
<Parameters xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>String</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</Parameters>
</Branch_Add>
</Branches>
<Companies>
<Company_Add>
<CompanyName>String</CompanyName>
<Owner>String</Owner>
<OwnerType>contact</OwnerType>
<Parameters xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>String</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</Parameters>
</Company_Add>
</Companies>
<Contact>String</Contact>
<callback_url>String</callback_url>
<message>String</message>
</Contacts_RequestPerson>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<Contacts_RequestPersonResponce xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
<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>
<retval>0</retval>
<userOrganisationInfo>
<BranchesList>
<UserTeamsBranches>
<branch_KPP>String</branch_KPP>
<branch_address>String</branch_address>
<branch_id>String</branch_id>
<branch_name>String</branch_name>
<branch_phone>String</branch_phone>
<company_id>String</company_id>
<owner_id>String</owner_id>
<owner_name>String</owner_name>
<owner_type>String</owner_type>
<photo_id>String</photo_id>
</UserTeamsBranches>
</BranchesList>
<CompaniesList>
<UserTeamsCompanies>
<company_BIK>String</company_BIK>
<company_INN>String</company_INN>
<company_KPP>String</company_KPP>
<company_OGRN>String</company_OGRN>
<company_account>String</company_account>
<company_address>String</company_address>
<company_bank>String</company_bank>
<company_buh>String</company_buh>
<company_chief>String</company_chief>
<company_coraccount>String</company_coraccount>
<company_fullname>String</company_fullname>
<company_id>String</company_id>
<company_logo>String</company_logo>
<company_name>String</company_name>
<company_phone>String</company_phone>
<owner_id>String</owner_id>
<owner_name>String</owner_name>
<owner_type>String</owner_type>
<photo_id>String</photo_id>
</UserTeamsCompanies>
</CompaniesList>
</userOrganisationInfo>
</Contacts_RequestPersonResponce>