Birds Of The Same Feather   Biz Talk Server And Wcf

3,340 views
3,212 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
3,340
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
74
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Birds Of The Same Feather   Biz Talk Server And Wcf

  1. 1. Birds of the Same Feather – BizTalk and WCFK.Meena Director SymIndia Training & Consultancy Pvt Ltd Session Code:
  2. 2. Agenda Overview WCF BizTalk WCF-BizTalk Integration Integration Scenarios WCF Send Adapters WCF Receive Adapters Specific Use cases
  3. 3. Objectives & Pre-requisites Objectives Focus on Integration issues Present many scenarios of integration Pre-requisites Knowledge in designing and developing with WCF BizTalk
  4. 4. Agenda Overview WCF BizTalk WCF-BizTalk Integration Architecture Integration Scenarios WCF Send Adapters WCF Receive Adapters Specific Use cases
  5. 5. WCF Service ‘Client’ Message (SOAP) ‘Service’ Message Headers: Addressing, Security, etc Message Body: Payload Metadata Services pass messages described by a contract Service may provide metadata Describing the contract Describing the policy it applies to communication
  6. 6. Mechanics of Communication ‘Client’ ‘Service’ What do I send? Contract Where do I send it? Address How should I send it? Binding Security? Encoding? Transport?
  7. 7. Mechanics of Communication ‘Client’ ‘Service’ Endpoint Endpoint Address Binding Contract Address Binding Contract Endpoint Address Binding Contract
  8. 8. WCF Runtime Architecture
  9. 9. Agenda Architectural Overview WCF BizTalk WCF-BizTalk Integration Integration Scenarios WCF Send Adapters WCF Receive Adapters Specific Use cases
  10. 10. BizTalk Message Flow XML, XML, Flat File, Flat File, Binary Orchestration Binary Receive Port Send Port Group (optional) Receive Location Send Port Receive Send Adapter Adapter Resolve Sign Decrypt Parse Serialize Party Encrypt Receive Pipeline XML Send Pipeline Tracking Message Box Management Database Database Database
  11. 11. Agenda Architectural Overview WCF BizTalk WCF-BizTalk Integration Integration Scenarios WCF Send Adapters WCF Receive Adapters Specific Use cases
  12. 12. WCF and BizTalk Server Together Bid Evaluation Order Capacity Placement BizTalk Planning Server Order Job Receiving Costing
  13. 13. Integration – How? BizTalk Extensibility Point Adapter Framework WCF send and receive facilities are exposed ( to and from) BizTalk through a set of adapters
  14. 14. Channel Stack Channel Stack WCF Service Host WCF ServiceHost Operation / Operation / BizTalk WCF Receive Location Receive Location Receive Adapter BizTalkPipeline BizTalk Pipeline Message Box Orchestrations BizTalkPipeline BizTalk Pipeline WCF as Adapter for BizTalk Send Port Send Port WCF Client WCF Client BizTalk WCF Send Adapter Channel Stack Channel Stack
  15. 15. WCF as Adapter for BizTalk Seven traditional BizTalk adapters WCF-BasicHttp WCF-WsHttp WCF-NetTcp WCF-NetMsmq WCF-NetNamedPipe WCF-Custom WCF-CustomIsolated UI Ensures ease of use and minimizes potential for mis-configuration
  16. 16. The Flow
  17. 17. Complementary Support WCF platform for building services on Windows Support for Standard communication protocols for services on Windows BizTalk Standards based Integration and BPM Server for Windows Infrastructure for orchestrating and extending WCF services
  18. 18. Use Cases Exposing BizTalk orchestration as a WCF service Consuming a WCF service from BizTalk orchestration Transactional Receive and Send Using Headers WS-* headers for routing and message processing Custom headers Using BizTalk as SOAP intermediary
  19. 19. Use Cases Using custom binding elements Using custom bindings Using BizTalk dynamic send ports Consuming a WCF Service originating from WCF-LOB Adapter (SAP, Siebel, Oracle DB, and Tibco RV)
  20. 20. Integration Made Easy Publishing wizard Publish WCF http service in IIS Publish metadata for in-proc or out-of-proc adapter to IIS Consuming wizard Create message and port types Create a proxy equivalent Bindings file Operation to action mapping
  21. 21. Agenda Overview WCF BizTalk WCF-BizTalk Integration Integration Scenarios WCF Send Adapters WCF Receive Adapters Specific Use cases
  22. 22. Scenario: Consuming WCF Service Endpoint Address Binding Contract Order Send Port Config. Contract Service Address Binding BizTalk (WCF) Messaging BasicHttpBinding Schema Info, Send Port Config. Info WCF Service Consuming Wizard
  23. 23. BizTalk Consuming WCF Service K. Meena Director SymIndia Training & Consultancy Pvt Ltd
  24. 24. Scenario: Publish Orchestration as WCF Service Receive Lcation Config. WCF Client Address Binding Contract BizTalk Orchestration BasicHttpBinding Proxy ABC Details SVC Util WCF Service Endpoint Publishing Wizard Info in IIS
  25. 25. Orchestration as WCF Service K. Meena Director SymIndia Training & Consultancy Pvt Ltd
  26. 26. Scenario Requirement Client App coordinates a Distributed Transaction WCF as Resource Manager BizTalk WCF Receive Adapter as RM Transaction committed only when WCF service commits BizTalk WCF adapter commits Usage of Custom Pipeline component to abort transactions
  27. 27. Scenario: Distributed Transactioning Transactions start and end at the message box Transaction Boundary Transaction Boundary Client WCF Adapter WCF Adapter App publish subscribe Message Box
  28. 28. Distributed Transactioning Transactions start and end at the message box Transaction Boundary Transaction Boundary Client WCF Adapter WCF Adapter App Message Box
  29. 29. Transaction Commited Start Txn Commit Archiving Place Order Client Commit Queue BizTalk Server R2 WCF Adapter Commit WCF Service
  30. 30. Transaction Aborted Abort Start Txn Archiving Place Order Client Abort Commit Queue BizTalk Server R2 w/WCF Adapter Abort WCF Service
  31. 31. Distributed Transactioning K. Meena Director SymIndia Training & Consultancy Pvt Ltd
  32. 32. Scenario Existing WCF Service TransactionFlow is mandatory TransactionScope is required for “PlaceOrder” method ‘PlaceOrder’ method If message header “BeginNewPO” exists, create a key randomly and insert PO into PO table Otherwise, Insert lineItem details in message to PODetails table BizTalk Send Port emits a single document PO master details Multiple PO LineItem details
  33. 33. Requirement Need to split the single BizTalk document Create WCF message with header for PO master details Create Multiple WCF messages, one for each Line item Initiate a transaction As part of the same transaction Send WCF message with PO header Send WCF messages for each Line Item
  34. 34. Solution Create a Custom Binding Element in WCF WCF Message Interception Split WCF Message into Single message for Order header Multiple messages , one for every Line Item in the order Submit the messages one by one Create a Custom Binding in BizTalk Send Port Use WCF-Custom adapter Configure binding Custom Interceptor, Transaction Flow Encoder Transport
  35. 35. Scenario: Custom Binding Element Send Port Config. Address Custom Custom Contract WCF Service Binding BizTalk WCF-Custom Messaging Inproc adapter CustomBinding= WCFMsgInterceptor, TransactionFlow Text Msg Encoding, Http Transport SVC Util Endpoint WCF Service Info Consuming Wizard in IIS
  36. 36. WCF Adapter configured with Custom Binding Element K. Meena Director SymIndia Training & Consultancy Pvt Ltd
  37. 37. Requirement Orchestration exposed as a WCF service endpoint Secured Access to a BizTalk Receive Location Configurable Windows groups Write a WCF Custom Behaviour and use it while configuring BizTalk Receive location
  38. 38. Scenario: Custom Behaviour Receive Location Config. Custom Behavior Address WSHttop Contract Behavior WCF Client For access check BizTalk Binding Orchestration
  39. 39. WCF Adapter with Custom Behavior K. Meena Director SymIndia Training & Consultancy Pvt Ltd
  40. 40. Summary By themselves, WCF and BizTalk add significant value Integrating them provides enhances the value Leveraging Scenarios WS-* standards support of WCF in BizTalk WCF extensibility scenarios are easy configurable in BizTalk BizTalk as a Broker for WCF Services to communicate
  41. 41. Related Content Solving Enterprise Integration Challenges with BizTalk Tuning BizTalk Server 2009 for Better Performance The Intricacies of Enterprise Integration : SOA vs. ESB
  42. 42. Resources http://www.microsoft.com/downloads/details.aspx?familyid=a9 76dc7d-2296-4f88-be4d-0d314fca9e59&displaylang=en&tm http://www.microsoft.com/downloads/details.aspx?displaylang =en&FamilyID=13d6121d-c82b-4614-a160-7c88bcc037b7 http://seroter.wordpress.com/2008/01/31/article-series-on- biztalk-and-wcf-part-i-operation-patterns/ http://www.microsoft.com/downloads/details.aspx?familyid=7 0BADD79-CE7E-4CCB-BE5C-3FF74CA3A8C4&displaylang=en http://msdn.microsoft.com/en-us/library/cc952299.aspx http://msdn.microsoft.com/en-us/library/dd379134.aspx http://msdn.microsoft.com/en-us/library/cc950532.aspx http://msdn.microsoft.com/en-us/library/bb967002.aspx
  43. 43. Track Resources Resource 1 Resource 2 Resource 3 Resource 4
  44. 44. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

×