Browse Prior Art Database

Method for adding multiple items to an order at once via XML upload in WebSphere Commerce Suite 5.1 Disclosure Number: IPCOM000021276D
Original Publication Date: 2004-Jan-09
Included in the Prior Art Database: 2004-Jan-09
Document File: 4 page(s) / 20K

Publishing Venue



This article addresses a method for adding multiple items to an order at once via XML upload in a WebSphere Commerce Suite 5.1 environment. As a subset of this method is a technique for adding nonexistent WCS products to an order.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 54% of the total text.

Page 1 of 4

Method for adding multiple items to an order at once via XML upload in WebSphere Commerce Suite 5.1

This method is used to sell off-lease equipment to business partners. The business requires that an online order be created dynamically and immediately based on an XML file that is uploaded to the system by a user. This method involved several steps including 1) uploading an XML file, 2) parsing the XML file, 3) searching the product database for items contained within the XML file, and 4) adding the items to the order all at once.

This method utilizes known Java techniques, however when linked together provides a unique solution. Specifically, one advantage of using this technique is, because a common API is used for XML parsing, there is not as large a learning curve in order to customize it. XML is very broad and if one were to reuse this asset it would be done through customizing the parameters that the code expects from the XML. Also, while this asset uses the WCS framework, it is standalone in its implementation and anyone could customize the technique. What is being presented here is the concept of adding multiple items to a WCS shopping cart from an XML file, all in one step.

The way this design is applied is shown in the below diagram. What made this design workable was that our users already had an XML file on their machines that they created from an outside application (eConfigurator).

Note: the XPath XML Parsing API was used for the file parse. This is a common reusable toolset.


Page 2 of 4


XML Upload JSP


Successful File Parse?


Order Exist?

Yes No

 For Each String Found in XML File:

Is Product In

Add Product ToDatabase?


Upload File


Upload? Yes

Parse File

Find Existing Order

Get Order Id

Create Order

Start Loop

Search For Product

This step exists to satisfy a business requirement that stated that items should be ordered regardless of whether or not they are in the catalog. This solution is also under patent review.

  Search for NoDUMMY Product Yes


 Add DUMMY Product To Order


End Loop


[This page contains 8 pictures or other non-text objects]

Page 3 of 4

As a corollary to this, it was mentioned that items from this XML file may or may not be in the database. The below addresses this issue:

This method was created through the implementation of an eBusiness application built in the WebSphere Commerce Suite (...