Transcription of Microsoft BizTalk Server 2010: Unleashed - …
1 Brian Loesgen Charles Young Jan Eliasen Scott Colestock Anush Kumar Jon Flanders . Microsoft . BizTalk Server 2010 . Unleashed . 800 East 96th Street, Indianapolis, Indiana 46240 USA. Microsoft BizTalk Server 2010 Unleashed Editor-in-Chief Copyright 2012 by Pearson Education, Inc. Greg Wiegand All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, Executive Editor or otherwise, without written permission from the publisher. No patent liability is Neil Rowe assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author Development Editor assume no responsibility for errors or omissions.
2 Nor is any liability assumed for Mark Renfrow damages resulting from the use of the information contained herein. Managing Editor ISBN-13: 978-0-672-33118-3. Kristy Hart ISBN-10: 0-672-33118-7. Library of Congress Cataloging-in-Publication data is on file Project Editor Printed in the United States of America Andy Beaster First Printing September 2011. Copy Editor Trademarks Keith Cline All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Pearson Education, Inc. cannot attest to the accu- Indexer racy of this information. Use of a term in this book should not be regarded as affecting Lisa Stumpf the validity of any trademark or service mark.
3 Proofreader Warning and Disclaimer Every effort has been made to make this book as complete and as accurate as possi- Apostrophe Editing ble, but no warranty or fitness is implied. The information provided is on an as is Services basis. The author and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information Technical Editor contained in this book. Gijsbert in 't Veld Bulk Sales Publishing Pearson offers excellent discounts on this book when ordered in quantity for bulk Coordinator purchases or special sales. For more information, please contact: Cindy Teeters Corporate and Government Sales 1-800-382-3419 Book Designer Gary Adair For sales outside of the , please contact: Compositor International Sales +1-317-581-3793 Gloria Schurick Contents at a Glance Foreword.
4 Xxii Part I The Basics 1 What Is BizTalk Server ? .. 3. 2 Schemas .. 15. 3 Maps.. 89. 4 Orchestrations .. 173. 5 Pipelines .. 257. 6 Adapters .. 337. Part II Advanced Topics 7 BizTalk 2010 and WCF: Extensibility.. 415. 8 BizTalk and Windows Azure .. 431. 9 Business Activity Monitoring with BizTalk BAM .. 441. 10 The Business Rules Framework .. 467. 11 Rule-Based Programming .. 563. 12 ESB with BizTalk Server .. 639. Part III Deployment and Administration 13 Administration Console Concepts .. 669. 14 Deployment Concepts .. 687. Part IV RFID. 15 BizTalk RFID .. 723. 16 BizTalk RFID Mobile .. 779. Closing notes.. 799. Index .. 803. Table of Contents Foreword xxii Part I The Basics 1 What Is BizTalk Server ?
5 3. A Brief History of Application Integration ..3. BizTalk Server Capabilities ..7. Adaptation ..7. Exception Orchestration and Choreography ..9. Performance and Scalability ..9. Security ..10. Insight ..10. Electronic Data Interchange ..11. RFID Event What Is a Typical BizTalk Solution?..11. BizTalk Server , WCF, and Summary ..14. 2 Schemas 15. BizTalk Schemas ..16. XML Schema Properties ..17. Internal Schemas ..18. XML Existing Generating an Creating an XSD ..21. Flat File Schemas ..36. Add Existing Creating by Hand ..38. Flat File Schema Wizard ..47. EDI Messages That Are Not XML and Not Flat File ..60. Pass-Through Pipeline ..60. Custom Disassembler ..61. Contents v Custom Editor Extensions ..61.
6 Third-Party Property Promotion ..61. Distinguished Promoted Properties ..65. Property Demotion ..66. When to Use Versioning of No Long-Running Transactions and a Short Downtime Acceptable ..69. Long-Running Transactions or a Short Downtime Is Unacceptable ..70. Testing ..71. Validate Schemas ..71. Validate Instances ..72. Generate Unit Testing of Schemas ..75. Testing Using Pipeline Schemas for Scenario Used in This Book ..81..81..82..83..84..84..87. Summary ..88. 3 Maps 89. The Mapper ..90. Layout of Mapper ..90. Initial Considerations ..92. Creating a Simple Map ..94. String Mathematical Functoids ..112. Logical Date/Time Functoids ..115. Conversion Scientific Cumulative Functoids ..117. vi Microsoft BizTalk Server 2010 Unleashed Database Functoids.
7 118. Advanced Functoids ..120. Third-Party Functoids ..122. Advanced Maps ..123. Mapping Optional Looping Functoid ..123. Index Functoid ..125. Database Lookup ..127. Scripting Functoid ..129. Functoid Combination ..131. Combination of Functoids for If-Then-Else ..131. Create Separated List ..132. Table Looping Conditional Creation of Output Nodes ..135. Custom XSLT ..136. Cross Referencing ..136. Building Custom Functoids ..140. Initial Setup ..141. Normal Functoid ..146. Cumulative Developing Advanced Deployment of Custom Functoids ..157. Testing of Maps ..163. Validating Maps ..164. Testing Maps ..164. Debugging a Unit Testing ..168. Summary ..172. 4 Orchestrations 173. Orchestration Designer ..174.
8 Defining Orchestrations ..177. Building Shapes ..188. Delivery Notification and Handling Retries ..217. Calling Pipelines ..218. Web Services ..221. Dehydration and Contents vii Convoys ..234. Parallel Convoys ..234. Sequential Convoys ..235. Transactions ..237. Long Running ..240. Compensating Code ..241. Persistence Exception Handling ..247. Debugging ..250. Send Out Messages ..250. Debug and Trace ..250. Breakpoints in Orchestration Summary ..255. 5 Pipelines 257. Stages in Stages in a Receive Stages in a Send Pipeline ..261. Built-In Receive Send Pipelines ..263. Built-In Pipeline XML Components ..264. Flat Files ..268. Encoding, Encrypting, and Signing ..272. BizTalk Validator and Party Resolution.
9 280. Custom Pipelines ..283. Using the Built-In Pipeline Templates ..283. Creating Custom Pipeline Templates ..284. Custom Pipeline Components ..287. Resources, Attributes, and Constructors ..288. Message and Context Miscellaneous Streaming ..314. Properties ..317. Really Fast Pipeline Component Deployment ..324. Pipeline Component viii Microsoft BizTalk Server 2010 Unleashed Testing ..330. Unit Testing ..331. Summary ..334. 6 Adapters 337. BizTalk Adapters ..337. Native Line-of-Business BizTalk Adapter Host Third-Party and Custom Additional Microsoft Adapters ..340. The Role of WCF Adapter Characteristics ..340. Direction ..341. Push and Pull ..341. Message Interchange Configuration ..342. Batches.
10 343. Transactions ..344. Message Metadata Registering Creating Adapter Handlers ..346. Port-Level Configuration ..349. Configuring Receive Configuring Send Ports ..352. Adapter Deploying Bindings ..355. Native File Adapter ..357. Robust Polling Locked Files ..358. File Renaming ..359. Reliable Messaging Issues ..359. Path and File Names ..359. Security ..360. Additional Send Handler FTP Adapter ..360. FTP Issues ..361. Contents ix Handling Duplicate Staging Files in Temporary Folders ..362. Raw FTP Secure Messaging ..363. HTTP Using HTTP Receive Handlers ..364. Using HTTP Send Handlers ..366. Additional Configuration ..366. MQ Series Using MQ Series Receive Using MQ Series Send Handlers ..369. Managing Queues.