Configuring BizTalk Adapters

Jan 4, 2011 at 2:43 PM

Hello,

I simply would like to create, retrieve, update and delete BizTalk adapters and add/remove Send/Receive handlers.

I was wondering if it was possible to configure BizTalk Adapters with msbuildextensionpack. If not, are there any alternate ways of achieving this?

 

Thanks,

Alper

Coordinator
Jan 4, 2011 at 3:30 PM

You can manage send / receive handers, but nothing is exposed to manage adapters. Have you seen the online samples?

 

http://www.msbuildextensionpack.com/help/3.5.8.0/html/d68a23c3-2b99-3d68-ae8d-cbbfdee0b984.htm

http://www.msbuildextensionpack.com/help/3.5.8.0/html/39023295-c104-8b83-0904-d7b2485f6d63.htm

Mike

 

Jan 4, 2011 at 3:38 PM

Hi Mike,

I was looking for a Adapter class and did not see the Send/ReceiveHandler classes. Thanks for the pointer.

Alper

 

On a side note, I'm absolutely loving msbuildextensionpack thanks for creating this useful tool.

Jan 4, 2011 at 9:44 PM

If anyone is interested, you can configure adapters via custom code. 

http://www.biztalkgurus.com/blogs/biztalksyn/archive/2010/11/10/wcf-adapter-quirkiness.aspx

http://geekswithblogs.net/cmcneill/archive/2005/04/05/28336.aspx

Coordinator
Jan 5, 2011 at 7:46 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Feb 9, 2011 at 1:33 PM

This functionality is now in the codebase: http://msbuildextensionpack.codeplex.com/SourceControl/changeset/changes/61223

Thanks for the idea.

Sample

<Project ToolsVersion="3.5" DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <TPath>$(MSBuildProjectDirectory)\..\MSBuild.ExtensionPack.tasks</TPath>
    <TPath Condition="Exists('$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks')">$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks</TPath>
  </PropertyGroup>
  <Import Project="$(TPath)"/>
    <Target Name="Default">
        <!-- Check an Adaptor Exists -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor TaskAction="CheckExists" AdaptorName="WCF-SQL">
            <Output TaskParameter="Exists" PropertyName="AdaptorExists" />
        </MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor>
        <Message Text="WCF-SQL Exists: $(AdaptorExists)"/>
        <!-- Delete an Adaptor -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor TaskAction="Delete" AdaptorName="WCF-SQL"/>
        <!-- Check an Adaptor Exists -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor TaskAction="CheckExists" AdaptorName="WCF-SQL">
            <Output TaskParameter="Exists" PropertyName="AdaptorExists" />
        </MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor>
        <Message Text="WCF-SQL Exists: $(AdaptorExists)"/>
        <!-- Create an Adaptor -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor TaskAction="Create" AdaptorName="WCF-SQL" MgmtCLSID="{59b35d03-6a06-4734-a249-ef561254ecf7}" Comment="WCF-SQL adapter"/>
        <!-- Check an Adaptor Exists -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor TaskAction="CheckExists" AdaptorName="WCF-SQL">
            <Output TaskParameter="Exists" PropertyName="AdaptorExists" />
            <Output TaskParameter="Comment" PropertyName="AdaptorComment" />
        </MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor>
        <Message Text="WCF-SQL Exists: $(AdaptorExists)"/>
        <Message Text="WCF-SQL Comment: $(AdaptorComment)"/>
    </Target>
</Project>

Mike