29.01.2013 Views

WebSphere Application Server V7.0: Concepts ... - IBM Redbooks

WebSphere Application Server V7.0: Concepts ... - IBM Redbooks

WebSphere Application Server V7.0: Concepts ... - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Service<br />

Consumer<br />

Service 2<br />

Producer<br />

Service 3<br />

Producer<br />

Service 1<br />

Producer<br />

Service 4<br />

Producer<br />

Figure 11-7 Publish-subscribe message exchange pattern<br />

Service 5<br />

Producer<br />

An example of a publish-subscribe message exchange pattern is a news<br />

syndication system. A news source publishes an article to the Service 1 Provider<br />

Web service. The Service 1 Provider Web service, in turn, sends the article to all<br />

interested parties.<br />

Composite<br />

The composite message exchange pattern is where a Web service is composed<br />

by making requests to other Web services. The composite service producer<br />

component controls the workflow and will generally also include business logic<br />

(Figure 11-8 on page 370).<br />

This is a more flexible architecture than the workflow-oriented message<br />

exchange pattern, because all of the Web services are self-contained. The<br />

composite service producer component might be implemented in the<br />

conventional manner, or can be implemented using a business process<br />

choreography engine.<br />

An example of a composite message exchange pattern is an online ordering<br />

system, where the service consumer represents a business partner application<br />

placing an order for parts. The composite service provider component represents<br />

the ordering system that has been exposed as a Web service to consumers and<br />

business partners through the Internet. The business process might involve<br />

using the Service 1 to check for the availability of parts in the warehouse, Service<br />

2 to verify the credit standing of the customer, and Service 3 to request delivery<br />

of the parts to the customer. Some of these services might be internal to the<br />

company and others might be external.<br />

Chapter 11. Web services 369

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!