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_PushSingleItem HTTP/1.1
Host: wbs.e-teleport.ru
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<Catalog_PushSingleItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
<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:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1: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>
<receipt_date>0001-01-01T00:00:00</receipt_date>
<recommendations xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1: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>
<Stock>0</Stock>
<StockDestination>
<StockDestination>
<Destination>String</Destination>
<Stock>0</Stock>
</StockDestination>
</StockDestination>
</stock>
<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:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</аdditional_properties>
</Catalog_PushSingleItem>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PushItemResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
<errCode>0</errCode>
<itemId>String</itemId>
</PushItemResponse>