Step 7: Configure the MDN Send Port
In this step, you set up a dynamic send port to send an asynchronous MDN to the \_MDNToFabrikam folder. This send port uses the AS2Send send pipeline to generate the outgoing MDN response. Since this is a dynamic send port, it will use the address in the Receipt-Delivery-Option line in the header of the message to route the message to the \_MDNToFabrikam folder. That address is the Fabrikam virtual directory. The Default.aspx.cs file associated with that virtual directory builds the MDN with an .msg extension, and sends the file to the destination folder (which is also specified in Receipt-Delivery-Option).
You can also configure the agreement to send the MDN to another address, by overriding the message settings with the agreement settings. For more information, see
In this example the MDN is sent using a dynamic send port; however you can also use a static send port to send the MDN to a static address. For more information, see Configuring a Static Send Port for Asynchronous MDNs over AS2 and Configuring a Dynamic Send Port for Asynchronous MDNs over AS2.
You must be logged on as a member of the BizTalk Server Administrators group.
To create the Send_Async_MDN send port
In the BizTalk Server Administration Console, under the BizTalk Application 1 node, right-click Send Ports, point to New, and then click Dynamic One-way Send Port.
In the Send Port Properties dialog box, name the send port as Send_Async_MDN.
Select AS2Send for Send pipeline.
The AS2Send pipeline is used because no EDI processing is required for the MDN.
Click Filters in the console tree. In the Filters pane, select EdiIntAS.IsAS2AsynchronousMdn for Property, == for Operator, and enter True for Value.
This filter ensures that the dynamic send port only picks up asynchronous MDNs from the MessageBox.
In the Send Ports pane of the BizTalk Server Administration Console, right-click Send_Async_MDN, and then click Start.
You configure the send port (Send_Async_997) to send the 997 acknowledgement back to Fabrikam, as described in Step 8: Configure the 997 Send Port.