Custom Binding Elements and Custom Behaviors won’t Show In BizTalk WCF Custom Adapter?


 

Hey all this is a quick troubleshooting post on how to get your Custom Binding Elements and Custom Behavior Elements showing in BizTalk 2010, and 2013. This post also serves as a reminder for me J

The other day I was confronted with getting some WCF Custom adapters configured. In one scenario, I needed to use a custom wcf binding I created. In another scenario I needed to use a custom wcf behavior. So I went through the normal steps of using C# and Visual Studio .net 2012 to create a custom Binding and custom Behavior. You can read about that here http://msdn.microsoft.com/en-us/magazine/cc163302.aspx and here http://trycatch.me/adding-custom-message-headers-to-a-wcf-service-using-inspectors-behaviors/.

Once I did this I figured all I remembered I needed to do was to register it in the machine.config file and BizTalk should be able to see it… “Hold your horses Tonto” sayeth the lone ranger.

This is true, however as a sanity check, it depends on what you register. For BizTalk to see the custom binding and behavior, you need to register the BindingElement or Behavior Element, not the specific behaviors or bindings. You also need to make sure you register it with both 32bit and64 bit config files. In my opinion the easiest way to register these extensions is using the graphical WCF Configuration tool shown below.

Once the behavior or bindings are registered properly you can see them inside of BizTalk admin console.

 

This means that you can practically use any properly registered WCF behavior or binding with BizTalkWCF Custom adapters… including the ability to send data to Azure Bridges, Topics, Queues, Azure ACS, and Azure EDI Bridges.

 

 

 

 

One thought on “Custom Binding Elements and Custom Behaviors won’t Show In BizTalk WCF Custom Adapter?

  1. Hello Dwight,

    Thanks a lot for your post. However I have tried all the above steps and could not select the “customTextMessageEncoding” name form the “Select Binding Element Extension” pop-up Window of “WCF-Custom Transport Properties” window (BizTalk Admin console -> Send Ports -> WCF-Custom -> Configure -> Binding -> customBinding -> CustomBindingelement -> Then Right Click -> Select “+ Add extension…) even after added the key in both the machine.config files and re-started my system.

    Could you please help me on this? How I can select the “customTextMessageEncoding” Key from “Select Binding Element Extension” pop-up Window?

    Thanks and Regards,
    Ranjan

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s