Tutorials > Web services


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.

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.


Learning objectives

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.

You must enable Struts Development in WebSphere Commerce Developer, if it is currently disabled:

  1. Select Window > Preferences.

  2. Select General > Capabilities.

  3. Click Advanced... and select Web Developer (advanced) > Struts Development, if it is currently disabled.

  4. Click OK to accept the changes and close the Advanced Capabilities Settings window.

  5. Click OK to accept the changes and close the Preferences window.


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


Related concepts

WebSphere Commerce as a service provider


Related tasks

Configure WebSphere Commerce Developer for Web service development

Deploy an inbound Web service

Enable WebSphere Commerce as a service provider

Modify an inbound Web service

Related reference

WebServicesRouter Web module configuration

Next >


+

Search Tips   |   Advanced Search