Step 11: Test the AS2 Solution

Step 11 of 11

In this step you verify the results of this tutorial.

You need to build the Sender.exe file that you use to send an EDI message to the Receive_AS2 receive location (through the Contoso virtual directory). Sender.exe returns an asynchronous MDN message. The message file is X12_00401_864.edi located in the \Program Files (x86)\Microsoft BizTalk Server <VERSION>SDK\AS2 Tutorial folder.

Prerequisites

You must be logged on as a member of the BizTalk Server Administrators group.

To test the solution with an asynchronous EDI message

  1. In Visual Studio, open the Sender.csproj project in the \Program Files (x86)\Microsoft BizTalk Server <VERSION>SDK\AS2 Tutorial\Sender folder. Right-click the Sender project, and then click Properties. Click Signing in the left-hand console. Ensure that Sign the assembly is selected, and set the strong name key file to Sender.snk. Make sure that Delay sign only is cleared.

  2. Build the project.

  3. Open a command prompt and navigate to \Program Files (x86)\Microsoft BizTalk Server <VERSION>SDK\AS2 Tutorial\Sender\bin\debug. Enter Sender.exe, and then press Enter. Verify that you see a message indicating that an AS2 message was successfully sent, and then close the command prompt.

    Note

    Running Sender.exe builds an AS2 message containing the following EDI test interchange: \Program Files (x86)\Microsoft BizTalk Server <VERSION>SDK\AS2 Tutorial\X12_00401_864.edi. After building the AS2 message, it posts it to the Contoso virtual directory, which uses BTSHttpReceive.dll to route the message to the receive location.

  4. Navigate to the \Program Files (x86)\Microsoft BizTalk Server <VERSION>SDK\AS2 Tutorial\_MDNToFabrikam folder. Verify that there is a <GUID>.msg file in the folder. Open the file in Notepad, and verify that the message is an MDN with AS2-From set to Contoso and AS2-To set to Fabrikam.

  5. Navigate to the \Program Files (x86)\Microsoft BizTalk Server <VERSION>SDK\AS2 Tutorial\_EDIXMLToContoso folder. Verify that there is a <GUID>.xml file in the folder. Double-click the file, and verify that the ST01 field of the message is set to 864.

  6. Navigate to the \Program Files (x86)\Microsoft BizTalk Server <VERSION>SDK\AS2 Tutorial\_997ToFabrikam folder. Verify that there is a <GUID>.msg file in the folder. Open the file in Notepad, and verify that the message is a 997 message (with an ST1 of 997) with AS2 headers over an EDI payload. Verify that AS2-From is Contoso and AS2-To is Fabrikam. Verify that ISA6 (Sender identifier) is set to 1234567 (Contoso) and ISA8 (Receiver identifier) is set to 7654321 (Fabrikam).

  7. To see the AS2 and EDI status reports, go to the Group Hub page in the BizTalk Server Administration Console, scroll to the bottom of the page, and click one of the status report links. For more information, see EDI and AS2 Status Reporting.

Next Steps

You have completed the AS2 Tutorial.

See Also

Tutorial 3: AS2 Tutorial
Step 1: Prepare for the AS2 Tutorial