Next >

 

Tutorial: Defining a User Registration Web Service

The purpose of this tutorial is to demonstrate how to create an OAGIS style Web services that will create a new customer in WebSphere Commerce through Web services using the WebSphere Commerce Web services framework. This tutorial will demonstrate the steps involved in defining a new service that uses the OAGIS style to create a new customer, register the service in WebSphere Commerce and create the response JSP template to generate a confirmation response.

Extended description of tutorial.

 

Learning objectives

In this tutorial, a SyncCustomer service will be created. This service will follow the XML schema conventions set by OAGIS (http://www.openapplications.org) but will not exploit the OAGIS schema elements for simplicity. This service will define an XML schema that will represent an existing business logic operation of registering a new user (UserRegistrationAdd). Using the Web services framework, the service will delegate to the existing business logic to create a new user and use a JSP template to return the internal identifier of the user along with the user's distinguished name. At the end of this tutorial, there will be a Web service that can be used by external applications to create users in WebSphere Commerce. This tutorial highlights the following features of the Web services framework:

 

Time required

Expect this tutorial to take about 3 hours to complete.

 

Audience

This tutorial is intended for WebSphere Commerce developers who will be responsible for developing Web services.

 

Prerequisites

Configure WebSphere Commerce Developer for Web service development Before beginning this tutorial, ensure that you have configured WebSphere Commerce Developer for Web service development. Knowledge prerequisites Before beginning this tutorial ensure that you have:

IBM recommends that you also follow the tutorial to define a Web service to retrieve product information. Resources Download the zip file containing all the code relating to this tutorial.

 

Lessons in this tutorial