Overview of the web feed utility

A web feed is an XML file that is specially coded to list the latest updates in a machine-readable format. The web feed utility offers a new solution to work with these updates and their static, unstructured content.

The Content Management System integration using web feeds enables unstructured content such as static HTML, images and other multimedia files managed in a Content Management System to be integrated with WebSphere Commerce. By using this solution, business users can manage unstructured content created in a Content Management System within the Management Center. Additionally, this solution lowers the cost of implementation by reducing the cost of integrating a Content Management System with WebSphere Commerce by providing integration code.

The following diagram shows how the web feed utility interacts with a WebSphere Commerce and a content management system.

  1. Connects to a web feed using a supported connector.

      HTTP connector
      Supports both http and https.

      FTP connector
      Does not support secure ftp.

    Two types of authentication can be used:

      Basic authentication
      Available for both http and https, an ID and password are required.

      Client certificate authentication
      This method is only available for https.

  2. Retrieves the feed and parses the content. Only new or updated entries are processed. To detect feed updates the eTag and the last modified date of the feed URL are used.

  3. Reads data from the web feed. The type of incoming data and its destination must be specified in the configuration file. Updates can be read from two different web feed standards without customizing the utility:

      RSS Reader
      Parse and process feeds that comply with the RSS version 2.0 standard.

      ATOM Reader
      Parse and process feeds that comply with the Atom 1.0 standard.

  4. Transforms the source data into WebSphere Commerce business objects.

  5. Allocates and resolves WebSphere Commerce business objects to physical data. Two writers are supported.

      Database writer
      Write the physical objects to the database.

      Web Server writer

      • Copy content to a local directory on the web server.

      • Transfer by ftp to a web server on a remote machine.

  6. Stores the physical data in a database, remote system, or local file system.

The web feed utility supports these scenarios:

The web feed utility can process RSS and Atom feeds in various languages. For an Atom feed, every unique value of a Category within an entry maps to a unique attachment in WebSphere Commerce. For an RSS feed, for an every unique value of a Category within an entry maps to a unique attachment in WebSphere Commerce. The utility creates different attachment assets for the same attachment when multiple entries within a feed that contain the same category. If category information is missing in the feed; then a combination of the identifier and title entry is used to generate a unique attachment. The utility supports one asset per language within an attachment, for example within the same attachment, we cannot have two English assets. We can have assets in different languages for the same attachment. To determine the language of every attachment asset and attachment description is decided based on the language information specified in the feed (in the XML 1.0 IETF RFC 3066 standard).

For Atom feeds (Atom Specification 1.0) the language information is retrieved from each individual entry. For RSS feeds language details are retrieved at the feed level. If no language information is present in the feed, the default business context language is assumed for the attachment asset or description.


Use the web feed utility

We can either run the web feed utility from the command line, or we can run it as a scheduled job using the scheduler.


Customization

Without customization, the web feed utility interacts with Content Management Systems that provide RSS Version 2 or ATOM Version 1 web feed support. The main areas of the web feed utility that we can customize are:


Limitations

Atom Syndication version 1.0

Really Simple Syndication (RSS) version 2.0