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 : WCF LOB Adapter SDK - WCF LOB Adapter Vivisected

- 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:26:22 AM
Now that you are becoming familiar with the adapter fundamentals and you've learned where the WCF LOB Adapter fits into WCF model, it is time to take a look inside the WCF LOB Adapter in detail. Figure 1 shows the major components and how they interact with each other.
Figure 1. WCF LOB Adapter's internal structure

As you can see, the WCF LOB Adapter as a code entity can be split into two big parts; one part is provided by the ASDK, and the other part has to be implemented by the adapter developer. Essentially, a developer—that's you—has to provide the implementation for three blocks of functionality: the connection, metadata handlers, and inbound/outbound handlers. The WCF LOB Adapter Development Wizard generates skeleton classes supporting the required methods and interfaces; you as the adapter developer need to provide an implementation specific to the target LOB system.

1. The Connection

Creating and opening a connection to a LOB system is in many cases an expensive procedure in terms of machine resources. One of the key features provided by the WCF LOB Adapter SDK is connection management, which takes the form of connection pooling.

When a connection is required to perform a metadata or inbound/outbound operation, the WCF LOB runtime component either creates a new connection or gets an existing one from a connection pool. When the operation completes, the WCF LOB SDK runtime component returns a connection to the connection pool.

To enable connection management, you have to provide the implementation of three interfaces and classes defined in the Microsoft.ServiceModel.Channels.Common namespace. We've listed them for you in Table 13-1.

Table 1. Interfaces and Classes to Implement Connection Management
Class/InterfaceDescription
IConnectionFactoryThis interface is used by the WCF LOB SDK when it needs to create a new connection to the target LOB system.
IConnectionThis interface encapsulates the methods required to connect to the target LOB system.
ConnectionUriThe WCF LOB SDK Wizard generates a class extending the abstract ConnectionUri class. You have to provide the implementation of the properties representing a connection string to the target LOB system.

2. The Metadata Handlers

As we have discussed, metadata support is an important feature that distinguishes WCF LOB Adapters from WCF services. To enable an adapter's metadata capability, you as the adapter developer must implement two mandatory interfaces; there is also one optional interface (see Table 2). These interfaces are defined in the Microsoft.ServiceModel.Channels.Common namespace.

Table 2. Metadata Interfaces
InterfaceDescription
IMetadataBrowseHandlerThis interface represents the browse capability of the WCF LOB Adapters. You must implement this interface regardless of your adapter functionality.
IMetadataSearchHandlerOptional. This interface represents the search capability of the WCF LOB Adapters.
IMetadataResolverHandlerThis interface is used when the WCF LOB Adapter SDK needs to generate the proxy files in case of .NET applications or XSD specifications in case of BizTalk applications. You must implement this interface regardless of your adapter functionality.

3. The Message Exchange Handlers

Message exchange handlers are represented by four interfaces from the Microsoft.ServiceModel.Channels.Common namespace. We've listed them for you in Table 3.

Table 3. Message Exchange Handlers
InterfaceDescription
IOutboundHandlerSupports one-way send or request-response pattern.
IAsyncOutboundHandlerOptional. Supports asynchronous one-way send or request-response pattern.
IInboundHandlerOptional. Supports one-way receive or reply pattern.
IAsyncInboundHandlerOptional. Supports asynchronous one way receive or reply pattern.
Other -----------------
- BizTalk 2009 : WCF LOB Adapter SDK - WCF LOB Adapters vs. WCF Services
- BizTalk 2009 : Understanding the WCF LOB Adapter
- 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
 
 
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