Consume Adapter Service BizTalk Project Add-In

The Consume Adapter Service BizTalk Project Add-In is metadata generation tool included in WCF LOB Adapter SDK for use with BizTalk Projects. This add-in is only installed if WCF LOB Adapter SDK Setup detects BizTalk Server 2006 R2 (RC or RTW version) on user’s machine. This tool can be used by adapter consumers in Visual Studio 2005 to browse (and search) metadata from adapter and then generate XML Schemas for selected operations. You can invoke this add-in by right-clicking on a BizTalk Project and selecting “Add > Add Generated Items > Consume Adapter Service”.

When this add-in is selected, the following dialog appears:

This dialog is exactly similar to Add Adapter Service Reference Visual Studio Plug-In with one difference - the Advanced button is not applicable and present on the BizTalk add-in.

Adapter consumer can click on Configure button to configure security, line-of-business connection string and adapter binding properties.

Select one or more operations, and click on OK to generate the artifacts.

The following files are generated:

Case 1: Selected contract type is Outbound

· XML Schemas

· WCF-Custom Send Port Binding Information XML

Case 2: Selected contract type is Inbound

· XML Schemas

· WCF-Custom Receive Port Binding Information XML

The port binding information XML files contain information to configure (during deployment) a send and/or receive port with WCF-Custom Transport properties using WCF LOB Adapter as a WCF binding.

Once you have the schema files, these can be used within BizTalk solutions. 

Deployment Time Experience

Once the BizTalk Project is built successfully, deploy it in BizTalk Server 2006 R2.

· Use BizTalk Server 2006 Administration Console to import the port binding XML file(s) to create the physical ports.

o Right click on Applications within BizTalk Group, select Import > Bindings and then navigate to the Visual Studio BizTalk project folder

o Select the Port Binding Information XML file

· Map the logical ports in Orchestration with the physical ports

· Enlist and start the orchestration (and all its dependencies)  

 

At run-time, the BizTalk application (orchestration) uses BizTalk WCF Adapter to communicate with the adapter.  See this post for more information on how WCF LOB Adapter relates to BizTalk WCF Adapter.