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 /Documents_Update HTTP/1.1
Host: wbs.e-teleport.ru
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<Documents_Update xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
<Documents xmlns:d2p1="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel.Model.Dto.DocumentUpdate">
<d2p1:TeleportDocumentUpdateDto>
<d2p1:header>
<d2p1:cancel_date>0001-01-01T00:00:00</d2p1:cancel_date>
<d2p1:canceled_after_delivery>false</d2p1:canceled_after_delivery>
<d2p1:client_order_number>String</d2p1:client_order_number>
<d2p1:comment>String</d2p1:comment>
<d2p1:currencyId>String</d2p1:currencyId>
<d2p1:date>0001-01-01T00:00:00</d2p1:date>
<d2p1:delivery_date>0001-01-01T00:00:00</d2p1:delivery_date>
<d2p1:huckster_status>String</d2p1:huckster_status>
<d2p1:marketplace>String</d2p1:marketplace>
<d2p1:marketplace_account>String</d2p1:marketplace_account>
<d2p1:marketplace_delivery_method>String</d2p1:marketplace_delivery_method>
<d2p1:marketplace_express>false</d2p1:marketplace_express>
<d2p1:marketplace_id>String</d2p1:marketplace_id>
<d2p1:marketplace_posting_number>String</d2p1:marketplace_posting_number>
<d2p1:marketplace_pre_posting_number>String</d2p1:marketplace_pre_posting_number>
<d2p1:marketplace_shop_id>String</d2p1:marketplace_shop_id>
<d2p1:marketplace_status>String</d2p1:marketplace_status>
<d2p1:marketplace_substatus>String</d2p1:marketplace_substatus>
<d2p1:marketplace_warehouse_id>String</d2p1:marketplace_warehouse_id>
<d2p1:marketplace_warehouse_name>String</d2p1:marketplace_warehouse_name>
<d2p1:num>String</d2p1:num>
<d2p1:payment_method>String</d2p1:payment_method>
<d2p1:payment_type>String</d2p1:payment_type>
<d2p1:status>new</d2p1:status>
<d2p1:sum>0</d2p1:sum>
</d2p1:header>
<d2p1:id>String</d2p1:id>
</d2p1:TeleportDocumentUpdateDto>
</Documents>
</Documents_Update>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<DocumentsUpdateResponse 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>
<modifiedCount>0</modifiedCount>
</DocumentsUpdateResponse>