Using WebDAV

Every Salesforce B2C Commerce instance has both an embedded WebDAV Server and a WebDAV Client.

The WebDAVClient class uses a server implemented on the merchant remote system. WebDAV uses either an HTTP or HTTPS connection. If you use WebDAV and HTTPS, you are PCI compliant when transferring files to staging or production instances.

The WebDAV server resets the timestamp for a rename, copy, modify or create operation to the time and date of the operation for uploaded files and directories. See WebDAV Timestamp Reset for more information.

For a sandbox instance you can copy and paste files from a Windows machine into your cartridge. This is possible because there is a WebDAV client integrated into the Windows operating system and a WebDAV server integrated into your cartridge. For information on how to do this, see Manually Adding Files to Sandbox Instances.

B2C Commerce WebDAV Server and B2C Commerce WebDAV Client Do Not Communicate

You can connect to either the WebDAV client or the WebDAV server from any computer wherever WebDAV is installed, except from a B2C Commerce instance. The B2C Commerce WebDAV client can't connect to the B2C Commerce WebDAV server in its own instance or other instances.

WebDAV directories

B2C Commerce offers secure access to certain file system locations via WebDAV. For example:

Cartridges https://<instance name>.demandware.net/on/demandware.servlet/webdav/Sites/Cartridges

Log files https://<instance name>.demandware.net/on/demandware.servlet/webdav/Sites/Logs

Security Log files https://<instance name>.demandware.net/on/demandware.servlet/webdav/Sites/Securitylogs

Import/Export https://<instance name>.demandware.net/on/demandware.servlet/webdav/Sites/Impex

Troubleshooting

When attempting to access these locations, you might receive an "Access Denied" error. These WebDAV locations enforce an SSL connection to ensure that the transfer of your files is secure. Your storefront code, import files such as orders, customer data, etc, should never be transferred openly without encryption. When you attempt to connect to these locations unencrypted (http), the B2C Commerce application denies you access. If you are trying to access the WebDAV locations via a browser, remember to use HTTPS in your URL, which uses SSL and is secure. If you are attempting to connect via a WebDAV client such as Total Commander, remember to select the SSL option when setting up the connection.

Related Links

File Size and Transfer Restrictions

Understanding Log Files