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 /Catalog_AddItems HTTP/1.1
Host: wbs.e-teleport.ru
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<Catalog_AddItems xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
<Categories>
<CatalogItemCategory>
<name>String</name>
<parent_uid>String</parent_uid>
<sortnum>String</sortnum>
<uid>String</uid>
</CatalogItemCategory>
</Categories>
<Items>
<CatalogItem>
<Pictures>
<CatalogItemPictures>
<order>0</order>
<picture>String</picture>
</CatalogItemPictures>
</Pictures>
<Properties>
<CatalogItemProperty>
<category_uid>String</category_uid>
<filter_type>String</filter_type>
<has_filter>false</has_filter>
<property_name>String</property_name>
<property_value>String</property_value>
<sortnum>String</sortnum>
</CatalogItemProperty>
</Properties>
<action>false</action>
<action_price>0</action_price>
<article>String</article>
<barcode>String</barcode>
<category_uid>String</category_uid>
<code>String</code>
<components xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</components>
<currency_id>String</currency_id>
<depth>0</depth>
<description>String</description>
<height>0</height>
<in_way_stock>0</in_way_stock>
<item_matches>
<ItemMatches>
<market_id>String</market_id>
<marketplace>String</marketplace>
<shop>String</shop>
<shop_id>String</shop_id>
</ItemMatches>
</item_matches>
<item_set>
<ItemSet>
<quantity>0</quantity>
<uid>String</uid>
</ItemSet>
</item_set>
<item_url>String</item_url>
<name>String</name>
<not_active>false</not_active>
<novetly>false</novetly>
<popular>false</popular>
<price>0</price>
<price_marketplaces>
<PriceMarketplaces>
<marketplace>String</marketplace>
<retail_action_price>0</retail_action_price>
<retail_price>0</retail_price>
<shop>String</shop>
<shop_id>String</shop_id>
</PriceMarketplaces>
</price_marketplaces>
<recommendations xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</recommendations>
<repricer>false</repricer>
<retail_action_price>0</retail_action_price>
<retail_price>0</retail_price>
<shop_id>String</shop_id>
<sortnum>String</sortnum>
<status>String</status>
<stock_fbo>
<StockFbo>
<marketplace>String</marketplace>
<shop>String</shop>
<shop_id>String</shop_id>
<stock>0</stock>
</StockFbo>
</stock_fbo>
<trademark>String</trademark>
<uid>String</uid>
<unit>String</unit>
<width>0</width>
<аdditional_properties xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>String</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</аdditional_properties>
</CatalogItem>
</Items>
<LoadMode>begin</LoadMode>
</Catalog_AddItems>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />