I am trying to upload inventory to shopsite using the Products XML upload. Can anyone tell me why the following isn't working or provide an example file that works?
I send a mime file to the url:
http://mystore.com/cgi-bin/dbupload.cgi ... e=products
The mime file is:
mime: MIME-Version: 1.0
Content-ID: <5.31.32252.1057009685@server01.example.net>
Content-Type: multipart/form-data; boundary="-----------------------------ShopSiteUpload_$"
-----------------------------ShopSiteUpload_$
Content-Disposition: form-data; name="clientApp"
1
-----------------------------ShopSiteUpload_$
Content-Disposition: form-data; name="dbname"
products
-----------------------------ShopSiteUpload_$
Content-Disposition: form-data; name="uniqueName"
SKU
-----------------------------ShopSiteUpload_$
Content-Disposition: form-data; name="batchsize"
500
-----------------------------ShopSiteUpload_$
Content-Disposition: form-data; name="newRecords"
no
-----------------------------ShopSiteUpload_$
Content-Disposition: form-data; name="use_optimizer"
no
-----------------------------ShopSiteUpload_$
Content-Disposition: form-data; name="defer_linking"
no
-----------------------------ShopSiteUpload_$
Content-Disposition: form-data; name="store1.xml" filename="store1.xml"
Content-Type: text/xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE ShopSiteProducts PUBLIC "-//shopsite.com//ShopSiteProduct DTD//EN" "http://www.shopsite.com/XML/1.2/shopsiteproducts.dtd">
<ShopSiteProducts>
<Response>
<ResponseCode>1</ResponseCode>
<ResponseDescription>success</ResponseDescription>
</Response>
<Products>
<Product>
<SKU>10003</SKU>
<Name>Batman Figure</Name>
<QuantityOnHand>25</QuantityOnHand>
</Product>
<Product>
<SKU>10001</SKU>
<Name>Superman Figure</Name>
<QuantityOnHand>48</QuantityOnHand>
</Product>
</Products>
</ShopSiteProducts>
-----------------------------ShopSiteUpload_$--