Share via


Step 7: Import a Catalog

A Commerce Server catalog in Extensible Markup Language (XML) file format contains both catalog definitions and product data. You can import a Commerce Server catalog XML file, and then use the Catalog Editor module to make changes to the product data.

In this lab you will import a sample XML-based catalog from the Commerce Server 2002 CD into the Commerce Server catalog database. You can assume that your business partner created a catalog containing electrical products.

Ee825847.note(en-US,CS.20).gifNote

  • The sample electrical.xml catalog is located in the \Support\.NET Tutorial Data\Catalog Data\Catalog Items\ folder on the Commerce Server 2002 CD. You must copy this catalog and save it on your computer.
  1. Click Start, point to Programs, point to Microsoft Visual Studio .NET, and then click Microsoft Visual Studio .NET.
  2. In the Microsoft Development Environment [design] – Start Page screen, click Open Project.
  3. In the Open Project dialog box, select the NorthwindTraders project, and then click Open.
  4. In the NorthwindTraders – Microsoft Visual C# .NET [design] – Default.aspx window, click Project on the toolbar, point to Commerce Server Project, and then select Business Desk.
  5. In Catalogs, click Catalog Editor.
  6. In the Catalogs screen, click Import on the toolbar, and then select Import XML from the drop-down list.
  7. In the Import XML Catalog dialog box, do the following:
    Use this To do this
    Specify a locally accessible XML file Click Browse to navigate to the electrical.xml XML catalog file located on your Business Desk client computer.
  8. Click OK.

This process may take a few minutes to complete.

Ee825847.important(en-US,CS.20).gifImportant

  • When you use Business Desk in Microsoft Visual Studio .NET, and you want to import an XML catalog file that is either on your local computer or on a remote client, you must do one of the following:
    • Move the local file to the server, and then import the XML file on the server.
    • Run Business Desk outside of Visual Studio .NET, and import the XML catalog file.

To see the catalog after you import it, click Catalog Editor. This step refreshes the Catalog Editor screen.

Copyright © 2005 Microsoft Corporation.
All rights reserved.