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

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 video Game
-   BlazBlue Chrono Phantasma EXTEND | Launch Trailer
-   Allison Road | Prototype Gameplay
-   Clash of Clans | 'Dark Spell Factory' Update
-   Shoppe Keep [PC] Debut Trailer
-   Orcs Must Die! Unchained [PC] What's New in Endless Summer v2.3 Patch
-   Gunpowder [PC] Launch Trailer
-   Uncharted 4: A Thief's End | E3 2015 Extended Gameplay Trailer
-   V.Next [PC] Kickstarter Trailer
-   Renowned Explorers [PC] Launch Date Trailer
-   The Void (Game Trailer)
-   World of Warships [PC] Open Beta Trailer
-   F1 2015 | Features Trailer
-   Battle Fantasia Revised Edition | Debut Trailer for Steam
-   Victor Vran [PC] Story Trailer
-   Star Wars Battlefront PC Alpha footage
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 windows Phone 7 windows Phone 8
programming4us programming4us
 
Popular keywords
HOW TO Swimlane in Visio Visio sort key Pen and Touch Creating groups in Windows Server Raid in Windows Server Exchange 2010 maintenance Exchange server mail enabled groups Debugging Tools Collaborating
programming4us programming4us
PS4 game trailer XBox One game trailer
WiiU game trailer 3ds game trailer
Trailer game
 
programming4us
Natural Miscarriage
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Game Trailer