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

BizTalk360
BizTalk Server

Over 650+ customers across
30+ countries depend on BizTalk360

Learn More
Serverless360
Azure

Operate efficiently with enterprise-grade Azure monitoring,
tracing, remediation & governance in one platform

Learn More

Back to Top