Tutorials > Contracts > Import and exporting contracts

< Previous | Next >


Import and exporting a contract using the WebSphere Commerce Accelerator

The easiest way to import and export contracts is through the WebSphere Commerce Accelerator. Although, some functionality of contracts cannot be implemented in this way. In those cases it would be necessary to import and export contracts using the XML files directly, as discussed in the next step of this tutorial.


Export a contract

Follow these steps to export a contract using the WebSphere Commerce Accelerator:


Procedure

  1. Open the WebSphere Commerce Development environment

    1. Click Start > Programs > IBM WebSphere Commerce Developer Professional/Business/Express Edition > WebSphere Commerce development environment

  2. Open the Servers view (Window > Show View > Servers)

  3. Start WebSphere Commerce Test Server.

  4. Start the WebSphere Commerce Accelerator

    1. Open a Web browser

    2. Type the following link into the Web browser:

      • https:// host_name/webapp/wcs/tools/servlet/ToolsLogon?XMLFile=common.mcLogon where host_name is the fully-qualified WebSphere Commerce development environment Web server host name. The host name may be a virtual host name on the Web server.

    3. Enter the WebSphere Commerce user name and password. The default user name and password are both wcsadmin

  5. Load the AdvancedB2BDirect store

    1. Click AdvancedB2BDirect in the Store name list

    2. Select the language to work in by selecting it in the Language to work in drop down box

    3. Click OK

  6. Click the Sales menu and select Accounts

  7. Put a check next to the name of the organization to which you are trying to export a contract from

  8. Click the Contracts button on the right hand side of the page

  9. Put a check next to the contract that to export

  10. Click the Export button on the right hand side of the page

  11. Enter a name for the contract in the Filename (required) text input box, followed by .xml, and click OK

To specify the directory to export the contract to, type the full directory name in the Filename (required) text input box.

The contract has now been exported. If you specified a directory in the Filename (required) text input box, then the contract has been exported to that directory. If you did not enter a directory then the contract is exported to the default directory, which is WC_EAR\xml\trading\xml.


Import a contract

Follow these steps to import a contract using the Commerce Accelerator:

  1. Execute steps 1 through 8 of the export a contract section above.

  2. Click the Import button

  3. Click the Browse... button next to the XML File (required) text input box

  4. When the Choose file dialog displays, browse to the XML file that defines the contract to import

  5. Click Open

  6. Click Import

You have now imported a contract into the organization you selected, using the WebSphere Commerce Accelerator.

In the next step of this tutorial, we will learn how to import and export contracts using the XML files that define those contracts.

< Previous | Next >


+

Search Tips   |   Advanced Search