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:
- When you open the orchestration, you would see below screen
2. Right click on Port Surface–>Select “New Configured Port”
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
- 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.
Choose appropriate option based on your requirement
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.
Port Bindings are three types.
- Specify now
- Specify Later
Specify now: you need to provide URL, Adapter and Pipeline details in design time itself.
Specify Later: If you select this option, you need to provide the URI, Transport and Pipeline details in BizTalk Admin console.
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.
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.
Partner orchestration direct bound ports provide the capability of having inter-orchestration communication through ports. Please go through the link below for more details.
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.