Integrating Integrators – BizTalk, Windows Azure, Windows Workflow, and Beyond

Re: Role link Vs Direct Binding

BizTalk 2009

This group is for all content related to BizTalk Server 2009. This includes a forum, samples, and videos. Most of the content here also applies to other versions of BizTalk beyond 2009.

Role link Vs Direct Binding

Answered (Not Verified) This question has suggested answer(s)

Hi,

I have been working on Biztalk from last 1yr. Recently I read about Role links. After I came to know about that, I am totally confused to decide which one suits best to fulfill my requirement.

My Requirement : It is very simple. I am getting an order as a input message, I need to send it to few trading partners after applying a business logic. The input message it self has some info in one field to decide to which trading partner it needs to sent.

Ex : If it trading partner 'A' ---- I need to send it to one destination folder using file adapter
       If it trading partner 'B' ---- I need to send it to one destination  using ftp adapter 
       If it trading partner 'c' ---- I need to send it to one destination using some other adapter.

As per my understnading I can do it in three ways.

Dynamic Binding : I will create a dynamic port, and I will store all the data (transport protocal, destination details) for all trading partners in a config file. I will get the data from config file as per the input data and assign it one field in the destination message, and will do the following

MySendPort(Microsoft.XLANGs.BaseTypes.Address) = outputmsg.destination.


Direct Binding : I will publish the message to message box and create a send ports in the admin console with the filters.


I think direct binding is preferrable one to dynamic, because in case if u have to add new trading partners in future you need to update the orchestration and need to deploy the whole proj.

Role Links :
Using Role links also I can implement the same.

But I want to know which one is best in these three. I read few web pages which mentioned role links are preferrable to Direct and Dynamic bindings. I am really confused how role links are better than direct.

Can anyone please tell me, which one suits best in my requirement and why??

Thanks in advacne.

Best Regards,
Srikanth.

Edit
All Replies
  • Hi Srikanth,

      Here's a blog that explains why role links are useful with an example, and I think it's best suited for your requirement:

    msbiztalk.blogspot.com/.../biztalk-role-links-explained.html

    "Google skills are more important than your coding skills."

    • Top 10 Contributor
    Suggested by
  • Hi,

    Thanks for your reply. I read that page. we can implement the same using direct binding also right, and configuring direct binding is so easy compare to Role links configuration. Can you please tell me what are the advantages we get if we use role links compared to Direct Binding???

    Thanks,

    Srikanth.

    Edit
  • Srikanth,

      The biggest advantage with role links is that they enable you to abstract your business process from your trading partner. Direct binding involves more programming in the orchestration code, and there is rework involved if your trading partner changes the way they receive your data.

    "Google skills are more important than your coding skills."

    • Top 10 Contributor
Page 1 of 1 (4 items)