Tutorials > Program model > Web services
Tutorial: Customizing Web 2.0 and Web services to support customization of the OrderItem noun using the UserData field
Customize Web 2.0 and Web services to support customization of the OrderItem noun using the UserData field.
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. UserData 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, we 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 see options in their shopping cart before they check out for any items that have the ability to be engraved. For example, wine glasses will have the options for the text to be engraved as well as the size and font of that text.
Time required
Expect this work flow to take about 4 hours to complete.
Audience
This work flow 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.
- Set up the development environment for creating WebSphere Commerce services.
- Published the Madisons starter 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 the 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 the new engraving attributes
In this step, we will create engraving attributes.
- Customize the client library and component facade
In this step, you learn how to create the source code support the new engraving attributes for the Web Services
- Update the order shopping flow to include the customized code
In this step, you update the order shopping flow to include the customized code.
- Customize the Web 2.0 store to show engraving attributes
This section explains how to customize the Web 2.0 store to show engraving attributes.
- Test the customization
This section is about testing the customization.
- Summary: Customizing Web 2.0 and Web services to support customization of the OrderItem
In this tutorial, you learned how to extend a noun to add new attributes using the UserData field, change the Web 2.0 store to populate and display the new attributes, and test the work.