Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

BizTalk 2009 : Understanding the WCF LOB Adapter

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
6/24/2011 9:22:35 AM
Most people ask whether a WCF LOB Adapter is in fact a WCF service. The answer is no, it is not. WCF LOB Adapters are built on top of the WCF channel model and exposed as custom WCF bindings. This enables a client application to communicate with WCF LOB Adapters as if they are classic WCF services, but such similarity also confuses many developers. To understand this better, let's take a very brief excursion into WCF fundamentals.

1. WCF Endpoints

To establish a communication process with clients, a service must expose at least one endpoint. The WCF endpoints consist of three parts known as the "A, B, and C" of the WCF. The three parts are as follows:

  • Address: This takes the form of the URI that specifies the address where the service listening for incoming messages can be reached.

  • Binding: Bindings specify a communication protocol when the message is sent to a particular address.

  • Contract: Contracts specify what operations and data types are supported by the service.

Communication between client and service is conducted through a so-called communication channel. When you instantiate the ServiceHost class, it builds a channel listener, which in turn builds a communication channel for the service. On the client side, the proxy creates a channel factory that is responsible for building an equivalent communication channel for the client. The channels have a layered structure where each layer or binding element in stricter terms performs its own part of message processing as the message goes from one layer to another, as shown in Figure 1. As you can notice, the bottom layer in the communication channel is a transport layer, and that's exactly where WCF LOB Adapter fits within the channel stack.

Figure 1. The layered structure of the WCF

2. WCF Transports

Out of the box, WCF supports a few predefined transports such as TCP, Named Pipes, HTTP, and MSMQ, but being designed with extensibility in mind, WCF allows you to use your own custom transport components tailored to your specific needs. If you take a look at the sample adapter code provided for this chapter, you will see that the core adapter class is derived from the System.ServiceModel.Channels.TransportBindingElement class. Figures 2 and 3 show the message flow for the WCF LOB Adapters in inbound and outbound exchanges.

As you can see in the outbound scenario, the WCF LOB Adapter, instead of sending the message over the network, just communicates with the LOB system and sends a response to the client application.

In the inbound scenario, the WCF LOB Adapter monitors the target LOB system for particular events and generates a notification message containing event-specific data for the hosting application.

NOTE

If you are interested in taking a deeper look at WCF channels, you can find detailed information at http://go.microsoft.com/fwlink/?LinkId=82614.

Figure 2. WCF LOB Adapter outbound exchange

Figure 3. WCF LOB Adapter inbound exchange
Other -----------------
- SQL Server 2008 High Availability : Database Clustering
- SQL Server 2008 High Availability : Database Mirroring (part 2) - SharePoint and Database Mirroring
- SQL Server 2008 High Availability : Database Mirroring (part 1) - How to Configure Database Mirroring
- Sharepoint 2010 : SharePoint Disaster Recovery Testing and Maintenance
- Microsoft PowerPoint 2010 : Working Together on Office Documents - Publishing Slides to a SharePoint Library
- Microsoft PowerPoint 2010 : Working Together on Office Documents - Inviting Others to a Groove Workspace & Saving a Document to a SharePoint Server
- Microsoft PowerPoint 2010 : Working Together on Office Documents - Sharing Documents in a Groove Workspace
- Using Microsoft Dynamics CRM for Outlook : Synchronizing Contacts, Tasks, and Appointments
- Using Microsoft Dynamics CRM for Outlook : Accessing CRM Records Within Microsoft Dynamics CRM for Outlook
- SQL Server 2008 : Upgrading to Microsoft SQL Server 2008 - SQL Server Integration Services & Post-Upgrade Procedures
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server