Book Image

Getting Started with BizTalk Services

Book Image

Getting Started with BizTalk Services

Overview of this book

Table of Contents (17 chapters)
Getting Started with BizTalk Services
Credits
Foreword
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Routing


Now let's look at another common scenario for messaging—routing. Here, a message needs to be delivered to one of a number of potential endpoints depending on some criteria. That criteria could be based on the property of the message (such as where it came from) or a property in the message (a data item such as country). Such content-based routing is easily achievable with BizTalk Services, as we'll see.

It should be noted that a message cannot be sent to more than one endpoint. This is something BizTalk Server is capable of, but currently BizTalk Services is not. Instead, BizTalk Services allows you to choose between destinations based on the routing rules you configure.

Look at the design in the Routing bridge pattern figure of the Enrichment section again. Notice that there are two possible destinations. We will now configure the message flow itinerary to route the message to the Americas destination if the Country property is USA; otherwise, we'll route to Europe. To do this, we...