478 Patterns: Implementing Self-Service in an SOA Environment
Enter the following values:
Mediation name: TransformMediator
Handler list name: TransformMediator
Click OK.
Mediate the destination
To mediate the destinations, perform the following steps:
1. Locate the bus definition by selecting Service integration Buses. Click
the bus name (ITSOMartBus) to open it.
2. Under Additional Properties click Destinations.
3. In the list of destinations, check the box to the left the queue name. In this
case, the queue is ProcessorToMail.queue.
Click the Mediate button.
4. In the next screen, select TransformMediator as the mediation to apply to
the destination.
Click Next.
5. In the next screen, select the bus and click Next.
6. Click Finish.
Save your changes.
DeliverySystem application
To install the DeliverySystem application, follow these steps
1. Install the DeliverySystem.ear file on the application server.
2. Create an outbound service definition for the HomeDelivery Web service
using the process outlined in 10.7.4, “Create the outbound services” on
page 337 using the values below. Make sure the application server is started.
WSDL location:
http://localhost:9080/HomeDeliveryRouter/wsdl/com/ibm/patterns/
delivery/HomeDelivery.wsdl
For all other selections use the defaults. When selecting the service and
port, take the only option available.
Note: Be sure to uncomment the appropriate lines in Processor.java to
activate this portion of the application.
Appendix A. Sample application install summary 479
3. Create another outbound service definition for the BusinessDelivery Web
service using the process outlined in 10.7.4, “Create the outbound services”
on page 337 using the values below. Make sure the application server is
started.
WSDL location:
http://localhost:9080/BusinessDeliveryRouter/wsdl/com/ibm/patterns/
delivery/BusinessDelivery.wsdl
For all other selections use the defaults. When selecting the service and
port, take the only option available.
4. Create an inbound service definition for the HomeDelivery Web service using
the process outlined in 10.7.5, “Create the inbound services” on page 340
and use the following values:
Service destination name:
http://delivery.patterns.ibm.com:HomeDeliveryService:HomeDelivery
Template WSDL location:
http://localhost:9080/HomeDeliveryRouter/wsdl/com/ibm/patterns/
delivery/HomeDelivery.wsdl
Inbound Service name: HomeDeliveryInboundService.
Select SOAPHTTPChannel1 for the endpoint listener.
For all other selections use the defaults. When selecting the service and
port, take the only option available.
Change the inbound port name to HomeDeliveryInboundPort.
5. Generate the new WSDL files for the Web service and export them using the
process outlined in 10.7.6, “Generate and export new WSDL for the services”
on page 343.
6. Follow the process outlined in 10.7.7, “Update the Web service clients to use
the bus” on page 344 to import the new WSDL and update the Web service
client to use the new WSDL.
a. Use the process in “Import the generated WSDL” on page 345 to import
the WSDL files for HomeDelivery to
ClientDelivery/ejbModule/META-INF/wsdl.
b. Use the process in “Create the namespace mapping files” on page 345 to
create a namespace mapping file:
Located in ClientDelivery/ejbModule/META-INF/namespace mappings.
With the entries in Example A-5 on page 480, substitute your cell name
and bus name where appropriate. Each entry starting with http\ should
be entered on one line.

Get Patterns: Implementing Self-Service in an SOA Environment now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.