Part 4: Adding new Adapters to ESB Itinerary

Posted: December 18, 2014  |  Categories: General Uncategorized
Tags:

Default itinerary comes with few Adapters as below.

1

What if you want a new Adapter (for example HTTP, WCF-NetTCP etc.)? Solution is to create ESB Adapter Provider.
1. Create a simple class library and add a reference to add reference to “Microsoft.Practices.ESB.Adapter” in BizTalk ESB Toolkit Installation Folder\Bin

2

  1. Create a class extending the “BaseAdapterProvider” as shown below.

public class HttpAdapterProvider : BaseAdapterProvider

{

public override string AdapterName

{

get

{

return “HTTP”;

}

}

}

3

3. Sign the assembly, GAC the DLL.
4. Open esb.config file in the BizTalk ESB Toolkit Installation Folder and under “adapterProviders” add new configuration detail like below

4

5. Restart Visual Studio. Now you should be able to see the new Adapter.

5

In the same way you can extend “WCFBaseAdapterProvider” and create WCF based Adapters like below.
public class WebHttpAdapterProvider : WCFBaseAdapterProvider
{
public override string AdapterName
{
get
{
return “WCF-WebHttp”;
}
}
}
You can see my other post or more details.

– Shiv

#1 all-in-one platform for Microsoft BizTalk Server management and monitoring
turbo360

Back to Top