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 /OfferPush HTTP/1.1
Host: wbs.e-teleport.ru
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<OfferPush xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceInterface">
<Offer xmlns:d2p1="http://schemas.datacontract.org/2004/07/TeleportService.DaoMongo.Dto">
<d2p1:Comment>String</d2p1:Comment>
<d2p1:Company>
<d2p1:Id>String</d2p1:Id>
<d2p1:Name>String</d2p1:Name>
</d2p1:Company>
<d2p1:Contract>
<d2p1:Date>0001-01-01T00:00:00</d2p1:Date>
<d2p1:Id>String</d2p1:Id>
<d2p1:Name>String</d2p1:Name>
<d2p1:Number>String</d2p1:Number>
</d2p1:Contract>
<d2p1:Id>String</d2p1:Id>
<d2p1:Sum>0</d2p1:Sum>
<d2p1:Table>
<d2p1:Columns>
<d2p1:AdditionalColumns>
<d2p1:OfferDtoTableColumn>
<d2p1:EnumValues xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>String</d7p1:string>
</d2p1:EnumValues>
<d2p1:Header>String</d2p1:Header>
<d2p1:Name>String</d2p1:Name>
<d2p1:Required>false</d2p1:Required>
<d2p1:Type>String</d2p1:Type>
<d2p1:Value>String</d2p1:Value>
</d2p1:OfferDtoTableColumn>
</d2p1:AdditionalColumns>
<d2p1:Article>String</d2p1:Article>
<d2p1:Code>String</d2p1:Code>
<d2p1:Confirmed>String</d2p1:Confirmed>
<d2p1:Id>String</d2p1:Id>
<d2p1:Name>String</d2p1:Name>
<d2p1:Owner>String</d2p1:Owner>
<d2p1:Price>String</d2p1:Price>
<d2p1:Quantity>String</d2p1:Quantity>
<d2p1:Sum>String</d2p1:Sum>
<d2p1:Trademark>String</d2p1:Trademark>
<d2p1:Uid>String</d2p1:Uid>
<d2p1:Unit>String</d2p1:Unit>
</d2p1:Columns>
<d2p1:Rows>
<d2p1:OfferDtoTableRow>
<d2p1:AdditionalColumnsValues>
<d2p1:OfferDtoTableRowValue>
<d2p1:Name>String</d2p1:Name>
<d2p1:Value>String</d2p1:Value>
</d2p1:OfferDtoTableRowValue>
</d2p1:AdditionalColumnsValues>
<d2p1:Article>String</d2p1:Article>
<d2p1:Code>String</d2p1:Code>
<d2p1:Confirmed>0</d2p1:Confirmed>
<d2p1:Id>String</d2p1:Id>
<d2p1:Name>String</d2p1:Name>
<d2p1:Owner>String</d2p1:Owner>
<d2p1:Price>0</d2p1:Price>
<d2p1:Quantity>0</d2p1:Quantity>
<d2p1:Sum>0</d2p1:Sum>
<d2p1:Trademark>String</d2p1:Trademark>
<d2p1:Uid>String</d2p1:Uid>
<d2p1:Unit>String</d2p1:Unit>
</d2p1:OfferDtoTableRow>
</d2p1:Rows>
</d2p1:Table>
</Offer>
</OfferPush>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<OfferPushResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceInterface">
<ErrCode>0</ErrCode>
<Offer xmlns:d2p1="http://schemas.datacontract.org/2004/07/TeleportService.DaoMongo.Model">
<d2p1:Comment>String</d2p1:Comment>
<d2p1:Company>
<d2p1:Id>String</d2p1:Id>
<d2p1:Name>String</d2p1:Name>
</d2p1:Company>
<d2p1:Contract>
<d2p1:Date>0001-01-01T00:00:00</d2p1:Date>
<d2p1:Id>String</d2p1:Id>
<d2p1:Name>String</d2p1:Name>
<d2p1:Number>String</d2p1:Number>
</d2p1:Contract>
<d2p1:CreateDate>0001-01-01T00:00:00</d2p1:CreateDate>
<d2p1:Id>String</d2p1:Id>
<d2p1:Num>String</d2p1:Num>
<d2p1:Sum>0</d2p1:Sum>
<d2p1:Table>
<d2p1:Columns>
<d2p1:AdditionalColumns>
<d2p1:OfferTableColumn>
<d2p1:EnumValues xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>String</d7p1:string>
</d2p1:EnumValues>
<d2p1:Header>String</d2p1:Header>
<d2p1:Name>String</d2p1:Name>
<d2p1:Required>false</d2p1:Required>
<d2p1:Type>String</d2p1:Type>
<d2p1:Value>String</d2p1:Value>
</d2p1:OfferTableColumn>
</d2p1:AdditionalColumns>
<d2p1:Article>String</d2p1:Article>
<d2p1:Code>String</d2p1:Code>
<d2p1:Confirmed>String</d2p1:Confirmed>
<d2p1:Id>String</d2p1:Id>
<d2p1:Name>String</d2p1:Name>
<d2p1:Price>String</d2p1:Price>
<d2p1:Quantity>String</d2p1:Quantity>
<d2p1:Sum>String</d2p1:Sum>
<d2p1:Trademark>String</d2p1:Trademark>
<d2p1:Uid>String</d2p1:Uid>
<d2p1:Unit>String</d2p1:Unit>
<d2p1:UserName>String</d2p1:UserName>
</d2p1:Columns>
<d2p1:Rows>
<d2p1:OfferTableRow>
<d2p1:AdditionalColumnsValues>
<d2p1:OfferTableRowValue>
<d2p1:Name>String</d2p1:Name>
<d2p1:Value>String</d2p1:Value>
</d2p1:OfferTableRowValue>
</d2p1:AdditionalColumnsValues>
<d2p1:Article>String</d2p1:Article>
<d2p1:Code>String</d2p1:Code>
<d2p1:Confirmed>0</d2p1:Confirmed>
<d2p1:Id>String</d2p1:Id>
<d2p1:Name>String</d2p1:Name>
<d2p1:Price>0</d2p1:Price>
<d2p1:Quantity>0</d2p1:Quantity>
<d2p1:Sum>0</d2p1:Sum>
<d2p1:Trademark>String</d2p1:Trademark>
<d2p1:Uid>String</d2p1:Uid>
<d2p1:Unit>String</d2p1:Unit>
<d2p1:UserName>String</d2p1:UserName>
</d2p1:OfferTableRow>
</d2p1:Rows>
</d2p1:Table>
<d2p1:Team>String</d2p1:Team>
<d2p1:UpdateDate>0001-01-01T00:00:00</d2p1:UpdateDate>
<d2p1:UserName>String</d2p1:UserName>
</Offer>
<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>
</OfferPushResponse>