Step 2: Modify or Create the Send and Receive Ports
You need FILE send and receive ports for the Batch In/Batch Out tutorial. If you clicked the Launch Tutorial button at the end of installing the Enterprise Edition of BizTalk Accelerator for HL7 (BTAHL7) created these ports for you: a send port named Tutorial_BTAHL7Drop, and a receive port named Tutorial_BTAHL7PickUp. If you have these ports, you still need to modify the send port Tutorial_BTAHL7Drop.
If BTAHL7 setup did not create the send and receive ports for you, see "To create the BIBOTutorialPickup receive port" procedure in this topic, and then see "To create the BIBOTutorialDrop send port" procedure also in this topic.
To modify the Tutorial_BTAHL7Drop send port
Click Start, point to All Programs, point to MicrosoftBizTalk Server, and then click BizTalk Server Administration.
In the Administration Console, expand BizTalk ServerAdministration, expand BizTalk Group, expand Applications, and then expand BizTalk Application 1.
Click Send Ports, right-click Tutorial_BTAHL7Drop, and then click Properties.
In the console tree, click Filters.
In the Filters pane, in the second row, select BTAHL7Schemas.MessageClass for Properties, select == for Operator, and type MessageClass2X for Value. Click Enter.
Set Group By on the BTS.ReceivePortName line to Or, and then click OK.
In the Microsoft BizTalk Server Administration window, expand Platform Settings, and expand Host Instances. Right-click BizTalkServerApplication, and then click Restart.
Note
Only use the following procedures if you installed the Standard Edition of BTAHL7, or if you did not click the Launch Tutorial button when you set up BTAHL7.
To create the Tutorial_BTAHL7Pickup receive port and location
Click Start, point to All Programs, point to MicrosoftBizTalk Server, and then click BizTalk Server Administration.
In the Administration Console, expand BizTalk ServerAdministration, expand BizTalk Group, expand Applications, and then expand BizTalk Application 1.
Right-click Receive Ports, point to New, and then click One-way Receive Port.
In the Receive Port Properties dialog box, in the Name box, type Tutorial_BTAHL7PickUp.
Click Apply to bind the port, and then click OK.
Right-click Receive Locations, point to New, and then click One-way Receive Location.
In the Select a Receive Port dialog box, click Tutorial_BTAHL7PickUp, and then click OK.
In the Receive Location Properties dialog box, in the Name box, type Tutorial_FileReceiveLoc.
In the Transport section, for the Type text box, click the drop-down list, and then select FILE.
Click the Configure button to the right of the Type drop-down list.
In the FILE Transport Properties dialog box, do the following:
Use this To do this Receive Folder Browse to <drive>:\Program Files\Microsoft BizTalk <version> Accelerator for HL7\SDK\End-to-End Tutorial\Tutorial_BTAHL7PickUp. Note: This is the path to the location on the file system or public share from where BizTalk Server will pick up the file. File mask Type *.txt. Click OK.
In the Receive Location Properties dialog box, do the following:
Use this To do this Receive Handler Keep BizTalkServerApplication as selected. Receive Pipeline Select BTAHL72XPipelines.BTAHL72XReceivePipeline. Click OK.
In BizTalk Explorer, right-click Tutorial_FileReceiveLoc, and then click Enable.
To create the Tutorial_BTAHL7Drop send port
In the BizTalk Server Administration Console, right-click Send Ports, point to New, and then click Static One-way Send Port.
In the Send Port Properties dialog box, do the following:
Use this To do this Name Type Tutorial_BTAHL7Drop. Type Select FILE from the drop-down list. Configure Click Configure to open the FILE Transport Properties dialog box. In the FILE Transport Properties dialog box, do the following:
Use this To do this Destination folder Browse to <drive:>\Program Files\Microsoft BizTalk <version> Accelerator for HL7\SDK\End-to-End Tutorial\Tutorial_BTAHL7Drop. Note: This is the path to the location on the file system or public share to which BizTalk Server will write the file. File name Type %MessageID%.txt (note that the extension is txt, not xml). Click OK.
In the Send Port Properties dialog box, for Send pipeline, select BTAHL72XPipelines.BTAHL72XSendPipeline from the drop-down list.
In the console tree, click Filters, and then do the following:
Use this To do this Property Select BTS.ReceivePortName from the drop-down list. Operator Leave == as the operator. Value Type Tutorial_BTAHL7PickUp. Group By Select Or from the drop-down list. Property Select BTAHL7Schemas.MessageClass. Operator Leave == as the operator. Value Type MessageClass2X. Click Enter. Verify in the pane at the bottom of the dialog box that the filter expression is correct.
Click OK.
In the Administration Console, click Send Ports, right-click Tutorial_BTAHL7Drop, and then click Start.
Expand Platform Settings, and then click Host Instances. Right-click BizTalkServerApplication, and then click Restart.
Proceed to Step 3: Test the Batch In/Batch Out Scenario.