TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
Birds Of The Same Feather Biz Talk Server And Wcf
1. Birds of the Same Feather –
BizTalk and WCFK.Meena
Director
SymIndia Training & Consultancy Pvt Ltd
Session Code:
2. Agenda
Overview
WCF
BizTalk
WCF-BizTalk Integration
Integration Scenarios
WCF Send Adapters
WCF Receive Adapters
Specific Use cases
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. Agenda
Overview
WCF
BizTalk
WCF-BizTalk Integration Architecture
Integration Scenarios
WCF Send Adapters
WCF Receive Adapters
Specific Use cases
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. 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. Mechanics of Communication
‘Client’ ‘Service’
Endpoint Endpoint
Address Binding Contract Address Binding Contract
Endpoint
Address Binding Contract
9. Agenda
Architectural Overview
WCF
BizTalk
WCF-BizTalk Integration
Integration Scenarios
WCF Send Adapters
WCF Receive Adapters
Specific Use cases
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. Agenda
Architectural Overview
WCF
BizTalk
WCF-BizTalk Integration
Integration Scenarios
WCF Send Adapters
WCF Receive Adapters
Specific Use cases
12. WCF and BizTalk Server Together
Bid
Evaluation
Order Capacity
Placement BizTalk Planning
Server
Order Job
Receiving Costing
13. Integration – How?
BizTalk Extensibility Point
Adapter Framework
WCF send and receive facilities are exposed (
to and from) BizTalk
through a set of adapters
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
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. 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. 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. 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. Agenda
Overview
WCF
BizTalk
WCF-BizTalk Integration
Integration Scenarios
WCF Send Adapters
WCF Receive Adapters
Specific Use cases
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. BizTalk Consuming WCF Service
K. Meena
Director
SymIndia Training & Consultancy Pvt Ltd
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. Orchestration as WCF Service
K. Meena
Director
SymIndia Training & Consultancy Pvt Ltd
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. 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. Distributed Transactioning
Transactions start and end at the message box
Transaction Boundary Transaction Boundary
Client WCF Adapter WCF Adapter App
Message Box
29. Transaction Commited
Start Txn
Commit Archiving
Place Order Client
Commit Queue
BizTalk Server R2 WCF
Adapter
Commit
WCF Service
30. Transaction Aborted
Abort
Start Txn
Archiving
Place Order Client
Abort
Commit Queue
BizTalk Server R2
w/WCF Adapter
Abort
WCF Service
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. 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. 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. 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. WCF Adapter configured with
Custom Binding Element
K. Meena
Director
SymIndia Training & Consultancy Pvt Ltd
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
39. WCF Adapter with Custom Behavior
K. Meena
Director
SymIndia Training & Consultancy Pvt Ltd
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.
42.
43. Related Content
Solving Enterprise Integration Challenges with
BizTalk
Tuning BizTalk Server 2009 for Better
Performance
The Intricacies of Enterprise Integration : SOA
vs. ESB