364 Smart SOA Solutions with WebSphere Enterprise Service Bus Registry Edition V7.5
10.2.2 Support service versioning with a dynamic SLA gateway
In this section, we introduce the dynamic SLA gateway solution that we use in
this chapter and explain how to prepare it for service versioning.
The dynamic service gateway pattern in WebSphere ESB accepts generic
anyType messages, meaning it is able to process request messages for any
service and then determine the endpoint address of the service implementation
that is to be invoked within a mediation.
In our solution, the gateway inspects the SOAP message header of each service
request and extracts the consumer ID and the SLA context ID from the
governance enablement profile gateway header. It uses these to determine what
version of a service to invoke.
Importing the solution into IBM Integration Designer
To import the dynamic solution into IBM Integration Designer, follow these steps:
1. Launch Integration Designer, and specify a new workspace. Then, in
Integration Designer, click File Import.
2. In the Import dialog box, expand Other, select Project Interchange, and click
Next. Click Browse to locate DynamicSLAGW_Solution.zip in the additional
material that is provided with this book. Click Open, and then click Finish to
import the project.
The DynamicSLA_Gateway module is imported into your workspace. This
module contains a simple dynamic gateway pattern, which we have
customized for this example.
To examine the DynamicSLA_Gateway module, in the Business Integration
view, expand DynamicSLA_Gateway and double-click Assembly Diagram.
The Assembly Diagram shows three components, as shown in Figure 10-3:
– A SOAP web services export
– A mediation flow component
– A SOAP web services import
Additional material: You can find all additional material resources for this
chapter in the /Versioning folder of the additional material that is supplied
with this book.