Book Image

SOA Patterns with BizTalk Server 2009

By : Richard Seroter
Book Image

SOA Patterns with BizTalk Server 2009

By: Richard Seroter

Overview of this book

SOA is about architecture, not products and SOA enables you to create better business processes faster than ever. While BizTalk Server 2009 is a powerful tool, by itself it cannot deliver long-lasting, agile solutions unless we actively apply tried and tested service-oriented principles. The current BizTalk Server books are all for the 2006 version and none of them specifically looks at how to map service-oriented principles and patterns to the BizTalk product. That's where this book fits in. In this book, we specifically investigate how to design and build service-oriented solutions using BizTalk Server 2009 as the host platform. This book extends your existing BizTalk knowledge to apply service-oriented thinking to classic BizTalk scenarios. We look at how to build the most reusable, flexible, and loosely-coupled solutions possible in the BizTalk environment. Along the way, we dive deeply into BizTalk Server's integration with Windows Communication Foundation, and see how to take advantage of the latest updates to the Microsoft platform. Chock full of dozens of demonstrations, this book walks through design considerations, development options, and strategies for maintaining production solutions.
Table of Contents (18 chapters)
SOA Patterns with BizTalk Server 2009
Credits
About the author
About the reviewers
Preface
Index

Executing composite transactions


In a normalized database environment, a single canonical data entity often has its data spread across more than one underlying database table. Therefore it's critical to be able to insert data into all relevant tables from within a single transaction. Otherwise, we end up with an inconsistent state across our tables. Ignoring the database-centric ways to ease this burden (such as table views, stored procedures), let's consider how we would update multiple tables at once from BizTalk Server 2009. Specifically, we want to take a material batch canonical message and insert its data into multiple tables. After that, we need to execute a scalar operation against the database in order to find out if any shipping trucks are regionally available for transporting this batch.

First, we need the XML schemas which represent our data source. By installing the WCF LOB Adapter SDK, we get a nice metadata browser built into Visual Studio.NET. We access this from a BizTalk...