BizTalk Logical Ports & Port Bindings

This blog is to explain various ports and port Bindings in Orchestration.

There are two types of ports in BizTalk.

  • Logical Ports: Ports which are used in Orchestration
  • Physical Ports: Ports which are used in BizTalk admin console

Each logical port (Except Direct Binding) should have binding with a physical port in BizTalk admin console

Since this blog is related to orchestration stuff, let’s talk about logical ports.

There are two types of logical ports

Inbound Logical Ports:

These ports are used to receive the messages from message box to Orchestration. These are also called as Subscribers (Subscribing messages from Message box DB)

Outbound Logical Ports:

These ports are used to send the message from Orchestration to message box. These are also called as Publishers (Publishing messages to Message box DB)

How to Create Logical Ports:

  1. When you open the orchestration, you would see below screen

1.png

2. Right click on Port Surface–>Select “New Configured Port”

2.png

 

3. Port Configuration Wizard appears and then click on “Next”–>Provide the name of the Port (Port_AppraisalInput)–>Click Next–>Provide PortType Name as “PortType_AppraisalInput”–>Click Next

Communication Pattern:

  • One-Way—Select this option if you want to create oneway port
  • Request-Response – Select this option if you want to create two-way port.

Access Restrictions:

Choose appropriate option based on your requirement

3.png

 

4. Port Direction for Inbound:

For Inbound logical port, select “I’ll always be receiving messages on this port” option.

For Outbound logical port, select “I’ll always be sending messages on tis port” option.

4.png

Port Bindings are three types.

  • Specify now
  • Specify Later
  • Direct

Specify now: you need to provide URL, Adapter and Pipeline details in design time itself.

5.png

Specify Later: If you select this option, you need to provide the URI, Transport and Pipeline details in BizTalk Admin console.

6.png

Direct Binding: This is loosely coupled Binding type. There are three options in Direct Binding and by default first option is selected in the screen. If we use this option, messages are subscribed from message box using filter condition in Receive shape properties.

7.png

Self-Correlating: 

Self-correlating direct bound ports are self-referential. This means that a self-correlating direct bound port supplies the information that an orchestration can use to send messages back to its enclosing orchestration. Please go through the link below for more details.

https://docs.microsoft.com/en-us/biztalk/core/how-to-use-self-correlating-direct-bound-ports

Partner Orchestration:

Partner orchestration direct bound ports provide the capability of having inter-orchestration communication through ports. Please go through the link below for more details.

https://docs.microsoft.com/en-us/biztalk/core/how-to-use-partner-orchestration-direct-bound-ports

Port Direction for Outbound: For outbound port bindings, you can see additional option as “Dynamic”.

Please see the Dynamic send port details in the below link.

https://vkbiztalk.com/2018/04/19/biztalk-dynamic-send-ports-for-rest-services/

8.png

 

 

Advertisements

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 )

Google+ photo

You are commenting using your Google+ 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 )

w

Connecting to %s