Step 13: Create and Configure Ports
In this step, you use the Port Configuration Wizard to create and configure ports in Orchestration Designer. Ports specify how your orchestration sends and receives messages to and from business processes. Each port has a type, a direction, and a binding. The properties together determine the direction of communication, the pattern of communication, the location to or from which BizTalk Accelerator for HL7 (BTAHL7) sends or receives the message, and how the communication takes place. BTAHL7 uses the Minimum Lower Layer Protocol (MLLP) adapter as a send port. The MLLP adapter uses TCP sockets communication to interface with other applications, such as laboratory applications, insurance applications, and legacy line-of-business applications. The MLLP Send Adapter represents a BizTalk Server adapter that is:
Customized. The adapter only ships with BTAHL7, as opposed to shipping with BizTalk Server.
Protocol/Transport. The adapter is not an application or data adapter.
Static. The adapter configuration does not involve a custom user interface.
Asynchronous. The adapter does not block the Messaging Engine thread, which enables increased performance of all adapters that BizTalk Server hosts.
Nontransacted. The adapter is not a transacted receive or send BizTalk Server adapter.
Regular. The adapter does not run in a separate application process.
Both One-Way and Two-Way. The adapter supports both One-way and Request-Response/Solicit-Response modes of interaction.
The MLLP adapter can submit individual messages or submit messages in a batch. The beginning of an MLLP message is marked with a wrapper character, hexadecimal 0x0b (also known as the Start Block or SB character), and the end of the message is marked by the combination of a hexadecimal 0x1c character (also known as the End Block or EB character) immediately followed by the 0x0d character (Carriage Return). BTAHL7 performance counters only count these wrapper characters for sent messages. BTAHL7 performance counters do not count these wrapper characters when receiving messages.
Note
The MLLP protocol standard does not allow characters under 0x20 in the message payload because it interferes with the ability to detect the SB and EB characters. You can configure the SB and EB character values, so be wary of this issue when making changes.
In this step, you configure the MLLP adapter and SOAP adapter.
To create and configure the ports
In Orchestration Designer, drag the Port shape from the Toolbox to the Port Surface on the left side of the Design view surface, and drop the shape so that it aligns horizontally with the DoorbellReceive shape.
In the Port Configuration Wizard, click Next.
On the Port Properties page, in the Name field, type SOAPReceivePort, and then click Next.
On the Select a Port Type page, enter the following information, and then click Next to continue.
Use this To do this Port Type Name Type SOAPReceivePortType. Communication Pattern Select One-Way. Access Restrictions Select Public - no limit. On the Port Binding page, click Next to accept the default values.
On the Completing the Port Wizard page, click Finish.
Drag the Port shape from the Toolbox to the Port Surface on the right side of the Design view surface, and drop the shape so that it aligns horizontally with the DoorbellSend shape.
Using the Port Configuration Wizard as you did in steps 2 through 7, create an additional send port using the following parameters:
Property Parameter Port Properties Name MLLPSendPort Port Type Name MLLPSendPortType Communication Pattern One-Way Access Restrictions Public - no limit Port Binding Specify Later Port direction of communication I'll always be sending messages on this port. In the Orchestration View window, with the Types, Ports Types, and SOAPReceivePortType nodes expanded, expand Operation_1, and then click Request.
In the Properties window, in the drop-down list for Message Type, expand Schemas, and then click BTAHL7_Project.Doorbell.
In the Orchestration View window, expand MLLPSendPortType, expand Operation_1, and then click Request.
In the Properties window, in the drop-down list for Message Type, expand Multi-part Message Types, and then click BTAHL7_Project.DoorbellFinalMessageType.
In the Name field, type Response, then press Enter.
On the orchestration Design view surface, click the DoorbellReceive action shape.
In the Properties window, in the drop-down list for Message, select DoorbellInputMessage.
On the orchestration Design view surface, click the DoorbellSend shape.
In the Properties window, in the drop-down list for Message, select DoorbellFinalMessage.
Click the green handle in the SOAPReceivePort and drag it to the green handle on the DoorbellReceive receive shape to connect the SOAPReceivePort to the DoorbellReceive receive shape.
Click the green handle in the DoorbellSend shape and drag it to the green handle on the MLLPSendPort port to connect the DoorbellSend send shape to the MLLPSendPort port.
Click the Solution Explorer tab under the Orchestration View.
In Solution Explorer, right-click BTAHL7V22Common, and then click Build. Ensure that a success message appears in the output window.
Note
If no success message appears, troubleshoot the solution.
Right-click BTAHL7 Project, and click Deploy to deploy the BTAHL7 project.
Proceed to Step 14: Publish the Orchestration as a Web Service.