200 likes | 348 Views
Module 6: Creating Pipelines. Overview. Lesson 1: Introduction to Pipelines Lesson 2: Building a Pipeline. Lesson 1: Introduction to Pipelines. What Is a Pipeline? Pipeline Scenarios Receive Pipeline Stages Send Pipeline Stages Pipeline Components What Are the Default Pipelines?
E N D
Overview • Lesson 1: Introduction to Pipelines • Lesson 2: Building a Pipeline
Lesson 1: Introduction to Pipelines • What Is a Pipeline? • Pipeline Scenarios • Receive Pipeline Stages • Send Pipeline Stages • Pipeline Components • What Are the Default Pipelines? • What Are Custom Pipeline Components? • Types of Pipeline Components
What Is a Pipeline? Use pipelines to: Normalize data from various formats to XML Translate data from XML to various formats Assemble and disassemble documents Decode and encode documents Decrypt and encrypt documents Assign and verify digital signatures Receive Pipeline Orchestration Send Pipeline Pipeline Components
Pipeline Scenarios Receive Pipelines: Send Pipelines: Decrypt inbound messages from trading partners Split batched messages Validate messages against known schemas Verify the sender of a message for non-repudiation Create custom processors to extend built-in functionality Encrypt outbound messages to trading partners Digitally sign outbound messages Provide a wrapper for outbound messages Validate messages against known schemas
Receive Pipeline Stages ! Drop Here! Drop Here! ! ! Drop Here! Resolve Party ! Drop Here! Decode Use to decode or decrypt messages Use when secure document exchange is required BizTalk includes a MIME/SMIME Decoder Decode Disassemble Disassemble Use to parse or disassemble components Use to probe messages and verify context properties BizTalk Server includes an XML, flat file, and a BTF disassembler Validate Validate Use to validate the format of an XML message Use to compare a message to a known schema Resolve Party Use to verify the sending party for a received message Use with public certificates to validate sender
Send Pipeline Stages Pre-Assemble Drop Here! ! Assemble Drop Here! ! Encode Drop Here! ! Pre-assemble Use to process a message before it is sent Use for custom components only Assemble Use to assemble or serialize a message Use to convert a message from XML to native format Encode To encode or encrypt messages Use when secure document exchange is required BizTalk includes a MIME/SMIME decoder
Pipeline Components A pipeline component defines a processing action Numerous pipeline components ship with BizTalk Server You can write custom pipeline components Built-in pipeline components XML assembler/disassembler Flat File assembler/disassembler MIME/SMIME encoding and decoding XML validation Party resolution
What Are Custom Pipeline Components? Custom Pipeline Components Use to extend message processing capabilities Use when standard pipeline components are not sufficient Use Scenarios Non-XML validations Non-supported decryption algorithms Non-supported signature formats Custom data conversions Advanced routing requirements Specialized processing
Types of Pipeline Components Interfaces IBaseComponent IComponent IComponentUI IPersistPropertyBag Promoting a Property Field Three types of components msg.Context.Promote("OrderTotal", "http://www.contoso.com/purchaseOrder/propertyFields", “20000.00"); General Assembling Disassembling Promoting a Distinguished Field msg.Context.Write("ItemDescription", "http://www.contoso.com/purchaseOrder/propertyFields", “X-Ray machine");
Lesson 2: Building a Pipeline • Using the Pipeline Designer • Securing Data by Using a Pipeline • Processing Interchanges by Using a Pipeline • Creating Schemas for Interchange Processing • Testing an Envelope Schema • Demonstration: Creating and Testing a Pipeline
Using the Pipeline Designer Pipeline Files Properties Window Toolbox Design Surface
Securing Data by Using a Pipeline MIME/SMIME Encoder Use for secure exchange of messages Can use to encode, sign, and encrypt Supports multi-part messages Pipeline Message MIME/SMIMEEncoderComponent
Processing Interchanges by Using a Pipeline May Require Multiple Schemas Header (Envelope) Body Trailer Interchange Processing Standard Recoverable Disassembler Properties
Creating Schemas for Interchange Processing Flat Files Sender: ContosoRecipient: AdvWorks Header_FF.xsd (Company, address, batch#) POs PurchaseOrder_FF.xsd Trailer_FF.xsd XML Files Sender: ContosoRecipient: AdvWorks Envelope.xsd (Envelope attributes) <Any> POs PurchaseOrder.xsd
Demonstration: Creating and Testing a Pipeline In this demonstration, you will see how to: • Create and configure a receive pipeline • Create and configure a send pipeline • Use the pipeline command-line tools
Lab: Creating Pipelines • Exercise 1: Configure a Send Pipeline to Encrypt Outgoing Messages • Exercise 2: Configure a Send Port to Use the Encryption Pipeline and Certificate • Exercise 3: Examine the Interchange Message to Be Disassembled • Exercise 4: Configure a Receive Pipeline to Disassemble a Message Interchange • Exercise 5: Configure a Receive Location to Use the Pipeline • Exercise 6: Submit Test Messages • Exercise 7: Enable and Test Recoverable Interchange