O'Reilly logo

Patterns: Implementing Self-Service in an SOA Environment by Fernando Teixeira, Shashi Shrimali, Peter Hood, Sandy Grewal, Diego Cotignola, Anup Aggarwal, Carla Sadtler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Web services scenario 337
10.7.4 Create the outbound services
Outbound services define Web service requests that leave the service
integration bus and are received by a service provider. See Figure 10-31.
Figure 10-31 A typical outbound service configuration
In our scenario, we need to define an outbound service definition for the
CreditCheck, HomeDelivery, and BusinessDelivery Web services. Start with the
CreditCheck service:
1. From the administrative console, expand Service integration and click
Buses.
2. Click ITSOMartBus.
3. Under Additional Properties click Outbound Services.
4. Click New.
5. The first page of the wizard (Figure 10-32 on page 338) requires you to
specify a URL or UDDI repository where a WSDL definition of the service can
be found. In our case, we are using a URL. The URL options allows you to
specify an HTTP URL or a file system path. Enter the following URL then click
Next.
http://localhost:9080/CreditCheckRouter/wsdl/com/ibm/patterns/creditCheck/
CreditCheck.wsdl
SOAP/JMS
target
service
outbound
service
outbound
port
WSDL
-----
-----
-----
-----
outbound
port
SOAP/HTTP
outbound
port
RMI/IIOP
Bus
338 Patterns: Implementing Self-Service in an SOA Environment
Figure 10-32 Service destination and template WSDL settings page
6. The next page displays the available services defined in the WSDL file. This
page allows you to select which service you wish to create an outbound
service for. In our case there is only one service to select
CreditCheckService. Click Next.
7. The next page (Figure 10-33) displays the ports defined for the selected
service. There is only one port in our service, so check CreditCheck and click
Next.
Figure 10-33 Port sections page
Chapter 10. Web services scenario 339
8. The next page allows you to change the name of the outbound service,
service destination name and port destination name. It also allows you to
specify a port selection mediation. Accept the defaults and click Next.
9. The final page allows you to select the bus member to which to assign the
outbound service. Accept the defaults and click Finish. The outbound service
will be created.
A Web service destination and port destination are created for each outbound
service. You can see these destinations by clicking on Destinations in the
bus details page. See Figure 10-34 for details.
Figure 10-34 Newly created outbound Web service and port destination
10.Save the changes.
HomeDelivery and BusinessDelivery outbound services
Repeat these steps and create two additional outbound services for
HomeDelivery and BusinessDelivery using the following WSDL locations:
򐂰 HomeDelivery:
http://localhost:9080/HomeDeliveryRouter/wsdl/com/ibm/patterns/delivery/Hom
eDelivery.wsdl
򐂰 BusinessDelivery:
http://localhost:9080/BusinessDeliveryRouter/wsdl/com/ibm/patterns/delivery
/BusinessDelivery.wsdl

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required