module 14: wcf send adapters

19
Module 14: WCF Send Adapters

Upload: cleo

Post on 23-Feb-2016

36 views

Category:

Documents


0 download

DESCRIPTION

Module 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. Lesson 1: Introduction to WCF Send Adapters. WCF Send Adapter Scenarios - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Module  14: WCF Send Adapters

Module 14:WCF Send Adapters

Page 2: Module  14: WCF Send Adapters

Overview

Lesson 1: Introduction to WCF Send AdaptersLesson 2: Consuming a Web ServiceLesson 3: Consuming Services from OrchestrationsLesson 4: WCF Send Adapter Security

Page 3: Module  14: WCF Send Adapters

Lesson 1: Introduction to WCF Send Adapters

WCF Send Adapter ScenariosWCF Send Adapter Architecture

Page 4: Module  14: WCF Send Adapters

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 Transaction

Page 5: Module  14: WCF Send Adapters

Send Port

SendPipeline

MessageBoxDatabase

WCF Send Adapter Architecture

PO Message

Map

Send Adapter

WCF Channel

Channel Layer

Page 6: Module  14: WCF Send Adapters

Steps for Consuming a Web ServiceThe BizTalk WCF Service Consuming WizardDemonstration: Consuming a Web Service

Lesson 2: Consuming a Web Service

Page 7: Module  14: WCF Send Adapters

Running the BizTalk WCF Service Consuming Wizard

Consumes a WSDL documentGenerates XML schemas and orchestration type definitionsGenerates bindings filesGenerated files added to a Visual Studio 2010 BizTalk Project

Steps for Consuming a Web Service

Add Generated Item : Consume WCF Service1

Complete the BizTalk WCF Service Consuming Wizard2

Build and Deploy the Project3

Import Generated Binding File4

Page 8: Module  14: WCF Send Adapters

Add Generated Item : Consume WCF Service1

The BizTalk WCF Service Consuming Wizard

Complete the BizTalk WCF Service Consuming Wizard2

Page 9: Module  14: WCF Send Adapters

Demonstration: Consuming a Web Service

In this demonstration, you will see how to:Run the WCF Service Consuming WizardDeploy the Generated SchemasImport the Generated WCF Send Port Binding

Page 10: Module  14: WCF Send Adapters

Steps for Consuming a Service from an OrchestrationMapping Operations to ActionsFormatting the Request MessageSelecting Content from the Response MessageDemo: Consuming a Service from an Orchestration

Lesson 3: Consuming Services from Orchestrations

Page 11: Module  14: WCF Send Adapters

Calling a Web Service from an Orchestration

A web service is represented as an orchestration send portEach web service operation maps to a send port operationType definitions created by WCF Service Consuming Wizard

Steps for Consuming a Service from an Orchestration

Create a new configured port in the orchestration1

Define message variables of the generated types2

Construct the web service request message3

Connect send and receive shapes to the new port4

Page 12: Module  14: WCF Send Adapters

Mapping Operations to Actions

SOAP Action Header

Required header in request messageValue that corresponds to the service operation being calledConfigure with a simple string if send port always calls the same operationOtherwise, configure with a list of operation names and corresponding actions

Page 13: Module  14: WCF Send Adapters

Formatting the Request MessageOutbound Message Body

Template Option

Requires a template that defines a wrapper for the BizTalk message bodyUse the bts-msg-body element to specify the location of BizTalk message bodyCan specify encoding of XML nodeResulting XML is used as SOAP body

Default is to send BizTalk Message as body of the SOAP messageUse the Template option to customize the SOAP message body

Page 14: Module  14: WCF Send Adapters

Selecting Content from the Response Message

Option Description

SOAP:BodyThe XML of the SOAP body is published to the MessageBox. This is the default setting.

SOAP:EnvelopeThe entire SOAP message is published, preserving encryption and digital signatures.

PathNode selected from the SOAP body is published to the MessageBox.

Propagate fault message

Option to publish detailed fault messages to the MessageBoxDefault is a generic error message

Page 15: Module  14: WCF Send Adapters

Demo: Consuming a Service from an Orchestration

In this demonstration, you will see how to:Set up a Web Service Call in the Orchestration Designer

Page 16: Module  14: WCF Send Adapters

Configuring WCF Send Adapter SecurityConfiguring WCF-Custom Send Adapter Security

Lesson 4: WCF Send Adapter Security

Page 17: Module  14: WCF Send Adapters

Configuring WCF Send Adapter Security

Transport Specific Adapters

Username Credentials

Can assign a set of static credentials to be used for all messagesUse Single Sign-On to allow BizTalk to look up user’s credentials for each message

Select a Security modeConfigure properties required by mode

Page 18: Module  14: WCF Send Adapters

Configuring WCF-Custom Send Adapter Security

WCF-Custom Security Options

Behavior TabUse for other types of client credentialsMust configure WCF endpoint behavior

Credentials TabUser name and passwordSingle Sign-OnProxy credentials for http(s)

Page 19: Module  14: WCF Send Adapters

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