CatalogFileUpload command

This command uploads the catalog file in CSV format.

Command structure

http://host_name/path/
The fully qualified name of your WebSphere Commerce Server and the configuration path.

Diagram of the command structure: the command starts with the fully qualified name of your WebSphere Commerce Server and the configuration path, followed by the command name, CatalogFileUpload  and the ? character. End the command with a list of parameters in the form of name value pairs. Separate each name value pair with the & character. For a detailed description of the parameters and their values, refer to the list entitled Parameter values.

Parameter values

filename
(Required) The local file name to be uploaded.
URL
(Required) The URL to be called when the command completes successfully.
errorURL
(Required) The URL to be called if the command fails.
storeId
(Required) The store's reference number associated with the catalog file being uploaded. Note that this parameter is optional if the store ID is available in the command context.
fileType
The file type. Only CSV is supported.
encoding
The encoding for the file. While the default encoding is UTF8, other values are supported, for example, 8859-1, GB2312, Big5, and so on.

Example

This example uploads a catalog CSV file into the WebSphere Commerce Server:

http://host_name/webapp/wcs/stores/servlet/CatalogFileUpload?filename=
E:\catalog.csv&encoding=UTF-8&storeId=1&fileType=CSV&URL=
CatalogUploadView&errorURL=CatalogUploadErrorView

Behavior

Exception conditions