14 WCF Send Adapters Overview Lesson 1 Introduction to WCF Send Adapters Lesson 2 Consuming a Web Service Lesson 3 Consuming Services from Orchestrations Lesson 4 WCF Send Adapter Security ID: 192520
Download Presentation The PPT/PDF document "Module" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
Module
14:
WCF Send AdaptersSlide2
Overview
Lesson 1: Introduction to WCF Send Adapters
Lesson
2: Consuming a Web Service
Lesson 3: Consuming Services from Orchestrations
Lesson 4: WCF Send Adapter SecuritySlide3
Lesson
1: Introduction to WCF Send Adapters
WCF Send Adapter Scenarios
WCF Send Adapter ArchitectureSlide4
WCF Send Adapter Scenarios
Microsoft BizTalk Server
2010
Send Invoice to Web Service
Send PO to Vendor and to Purchasing DB
Partner Supply Chain System
Query Warehouse DB for inventory
Oracle DB
Vendor
Web Service
SQL Server 2008
Atomic TransactionSlide5
Send Port
Send
Pipeline
MessageBox
Database
WCF Send Adapter Architecture
PO Message
Map
Send Adapter
WCF Channel
Channel LayerSlide6
Steps for Consuming a Web Service
The BizTalk WCF Service Consuming Wizard
Demonstration: Consuming a Web Service
Lesson 2: Consuming a Web ServiceSlide7
Running the BizTalk WCF Service Consuming Wizard
Consumes a WSDL document
Generates XML schemas and orchestration type definitions
Generates bindings files
Generated
files added
to a Visual Studio 2010 BizTalk
Project
Steps for
Consuming a Web Service
Add Generated Item : Consume WCF Service
1
Complete the BizTalk WCF Service Consuming Wizard
2
Build and Deploy the Project
3
Import Generated Binding File
4Slide8
Add Generated Item : Consume WCF
Service
1
The BizTalk WCF Service Consuming Wizard
Complete the BizTalk WCF Service Consuming Wizard
2Slide9
Demonstration:
Consuming a Web Service
In this demonstration, you will see how to:
Run the WCF Service Consuming Wizard
Deploy the Generated Schemas
Import the Generated WCF Send Port BindingSlide10
Steps for Consuming a Service from an Orchestration
Mapping Operations to Actions
Formatting the Request Message
Selecting Content from the Response Message
Demo: Consuming a Service from an Orchestration
Lesson 3: Consuming Services from OrchestrationsSlide11
Calling a Web
Service from an Orchestration
A web service is represented as an orchestration send port
Each web service operation maps to a send port operation
Type
definitions
created
by
WCF Service
Consuming
Wizard
Steps for Consuming a Service from an Orchestration
Create a new configured port in the orchestration
1
Define message variables
of the generated types
2
Construct the web service request message
3
Connect send and receive shapes to the new port
4Slide12
Mapping Operations to Actions
SOAP Action Header
Required header in request message
Value that corresponds to the service operation being called
Configure with a simple string if send port always calls the same operation
Otherwise, configure with a list of operation names and corresponding actionsSlide13
Formatting the Request Message
Outbound Message Body
Template Option
Requires a template that defines a wrapper for the BizTalk message body
Use
the bts-msg-body element to specify the
location
of
BizTalk message
body
Can specify
encoding of XML node
Resulting XML is used as SOAP body
Default is to send BizTalk Message as
body
of the
SOAP message
Use the Template option to customize the SOAP message bodySlide14
Selecting Content from the Response Message
Option
Description
SOAP:Body
The XML of the SOAP body is published to the
MessageBox
. This is the default setting.
SOAP:Envelope
The entire SOAP message is published, preserving encryption and digital signatures.
Path
Node selected from the SOAP body is published to the
MessageBox
.
Propagate fault message
Option to publish detailed fault messages to the MessageBox
Default is a generic error messageSlide15
Demo: Consuming a Service from an Orchestration
In this demonstration, you will see how to:
Set up a Web Service Call in the Orchestration DesignerSlide16
Configuring WCF Send Adapter Security
Configuring WCF-Custom Send Adapter Security
Lesson
4
: WCF Send Adapter SecuritySlide17
Configuring WCF Send Adapter Security
Transport Specific Adapters
Username Credentials
Can assign a set of static credentials to be used for all messages
Use Single Sign-On to allow BizTalk to look up user’s credentials for each message
Select a Security mode
Configure properties required by modeSlide18
Configuring WCF-Custom Send Adapter Security
WCF-Custom Security Options
Behavior Tab
Use for other types of client credentials
Must configure WCF endpoint
behavior
Credentials Tab
User name and password
Single Sign-On
Proxy credentials for http(s)Slide19
Lab:
Calling a Web Service from an Orchestration
Exercise 1:
Set up a web service call in the Orchestration Designer
Exercise 2:
Configure the Orchestration and Send Ports
Exercise 3: Test the Orchestration