Next >
Tutorial: Customizing Web 2.0 and Web services to support personalization
Customizing Web 2.0 and Web services to support personalization of order items using overlays
Learning objectives
This tutorial is designed to show you the steps involved in extending the OrderItem noun of the Web services architecture to include new information. Overlays will be used to transfer the new order information from the example Web2.0 store to WebSphere Commerce where it will persist to the database. In this tutorial, you will customize the shopping flow to allow the customer the ability to keep track of engraving information for an order item. After this customization, a customer will have an option to engrave items in their shopping cart that can be engraved. For example, wine glasses will have the option to be engraved, with the shopper specifying the size and font of the text. You will learn the development steps that are common to extending the noun using overlays, as well as using access beans to persist and retrieve the new data.
Time required
Expect this tutorial to take about 4 hours to complete.
Audience
This tutorial is intended for advanced WebSphere Commerce Store developers who are responsible for creating new business logic.
Prerequisites
Before beginning this tutorial ensure that you have:
- Installed WebSphere Commerce Developer.
- Installed WebSphere Commerce Developer Fix pack 2.
- Enabled the component-services feature.
- Enabled WebSphere Commerce services.
- Set up the development environment for creating WebSphere Commerce services.
- Installed and set up the Madison (Web 2.0) store.
Knowledge prerequisites To complete this tutorial you should be familiar with the following terms and concepts:
- WebSphere Commerce Developer
- An understanding of the Java programming language.
- A basic understanding of the database type used in your WebSphere Commerce development environment.
- A basic understanding of JSP pages.
- A basic understanding of EJB beans.
- A basic understanding of Access beans.
- A basic understanding of XML.
Lessons in this tutorial
- Prepare the database for new engraving attributes
In this step, you will create engraving attributes.- Create the overlay type
In this step you will create an XSD file that extends the OrderItemType to include your new engraving attributes.- Create the SDO genmodel file
In this step you will create an genmodel file that will be used to generate your new EngravingOrderItemType object.- Generating the SDO code from the genmodel file
In this step you will generate the new Service Data Object from the genmodel file.- Use the new SDO to customize the client library and component facade
This section explains using the new SDO to customize the client library and component facade.- Updating the order shopping flow
This section explains how to update the order shopping flow..- Customizing the store
This section explains how to customize the store.- Testing your customization
This sections explains how to test your customization.- Customizing Web 2.0 and Web Services to support personalization of order items
Customizing Web 2.0 and Web Services to support personalization of order items. Next >