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 /Basket_AddItemsList HTTP/1.1
Host: wbs.e-teleport.ru
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<Basket_AddItemsList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
<basketType>orders</basketType>
<contact>String</contact>
<list>
<BasketAddItem>
<item_id>String</item_id>
<price>0</price>
<quantity>0</quantity>
</BasketAddItem>
</list>
<set_mode>false</set_mode>
</Basket_AddItemsList>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<BasketAddItemsListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
<errCode>0</errCode>
<list>
<Basket>
<article>String</article>
<basketType>String</basketType>
<contact>String</contact>
<id>0</id>
<item_id>String</item_id>
<name>String</name>
<price>0</price>
<quantity>0</quantity>
<sum>0</sum>
<user_name>String</user_name>
</Basket>
</list>
</BasketAddItemsListResponse>