Step 1: Add Header and Acknowledgment Schemas
In this step, you create a new project based on the BTAHL72XCommon Project template. This template contains the three common schemas for message headers (MSH_25_GLO_DEF.xsd) and acknowledgments (ACK_24_GLO_DEF.xsd) and (ACK_25_GLO_DEF.xsd). You must include these schemas in a project so that BizTalk Accelerator for HL7 (BTAHL7) builds and/or validates the message headers and acknowledgments correctly. This process is common across all schema versions of BTAHL7 2.X.
You also create a strong key, assign it to the assembly, and then deploy the assembly. The strong key provides security and identity to the assembly, and is necessary for deployment. When you deploy the assembly, it is stored in the Configuration database (also known as the BizTalk Management database) and the global assembly cache (GAC).
To create the project and add header and acknowledgment schemas
In Visual Studio, on the File menu, point to New, and then click Project.
In the New Project dialog box, in the Project Types list, expand BizTalk Projects, and then click BTAHL7Projects.
In the Templates list, click BTAHL7V2XCommon Project.
In the Name box, type BTAHL7V2XCommon as the project name.
In the Location box, browse to <drive:>\Batching Tutorial.
Click OK.
Note
In Solution Explorer, three schemas (MSH_25_GLO_DEF.xsd, ACK_24_GLO_DEF.xsd, and ACK_25_GLO_DEF.xsd) are included in the project.
To assign a strong key to the assembly and deploy
Open Visual Studio Command Prompt.
On the Visual Studio command prompt, browse to the <drive>:\Batching Tutorial folder.
At the command prompt, type sn –k key.snk, and then press ENTER. Ensure that a success message appears in the output window.
Note
If the correct message does not appear, use Visual Studio to troubleshoot your assembly.
In Solution Explorer, right-click BTAHL7V2Xcommon Project, and then click Properties.
In the BTAHL7V2XCommon Project Property Page dialog box, click Signing.
Check Sign the assembly check box.
In Choose a Strong name key file drop down list select <Browse…>.
Browse to <drive>:\Batching Tutorial, select key.snk, and then click Open.
In the BTAHL7V2XCommon Project Property Pages window, click OK to save your changes.
In Solution Explorer, right-click BTAHL7V2Xcommon Project, and then click Deploy. Ensure a success message appears in the output window.
Note
If the correct deploy message does not appear, use Visual Studio to troubleshoot your deployment.
Proceed to Step 2: Add Common Schemas for v2.3.1.