264 Managing Information Access to an EIS Using J2EE and Services Oriented Architecture
processes” on page 266. The data model for the process and the services can
be created with tools that are provided by Rational XDE Developer. Refer to the
Rational XDE Developer documentation for details on how to use the tool. The
main steps to create the data types are:
1. Create a Java or EJB modeling project and a Java or EJB code model.
2. Add packages, Java classes, or EJBs that are needed to detail the data
model.
3. Generate code for all UML elements that you have defined.
Having successfully completed the code generation, Java data types including
attributes and relationships are available that can be used later to implement the
services and the BPEL process. To design the WSDL interfaces, however, XML
schemas are needed. XML schemas can be generated from Java objects using
WebSphere Studio Application Developer Integration Edition tools.
Designing the process and service interfaces
From an SOA perspective, all elements in the architecture are services and are
described by a WSDL interface definition. Both BPEL processes and the invoked
services are described by their WSDL interfaces.
WebSphere Studio Application Developer Integration Edition provides a WSDL
editor that we used to design the process interfaces. As an example, we show
the steps to create the interface for the trader system process in more detail. The
process model is depicted in Figure 6-6 on page 139.
The trader system process requires a StockOrderRequest business object as
input and returns a StockOrderConfirmation object. XML schema definitions for
the business objects have already been generated when we created the Trader
EIS service as detailed in 6.4.3, “Enabling the EIS component using JMS” on
page 156.
To create a WSDL interface definition, complete the following steps:
1. In the Business Integration perspective, select File
→ New → Service
Interface to create the WSDL file.
2. Specify a package name and a file name (for example, com.itso and
TraderSPInterface), and click Finish.
3. In the WSDL editor, in the Imports section at the top-left, right-click and select
Add child
→ Import. Make sure that the entry that appears in the Imports
section remains selected and go to the Ellipses button next to Location
(Figure 9-12 on page 265).