Step 1: Create and Deploy Header and Acknowledgment Schemas
You use the header schema to validate the header (MSH segment) of the message instance. You use the acknowledgment schema to generate the acknowledgment for the message instance. This process is common across all schemas versions of BTAHL7 2.X.
To create the header and acknowledgment schemas
Start Microsoft Visual Studio 2012.
In Visual Studio, on the File menu, point to New, and then click Project.
In the New Project dialog box, in the Project Types section, expand BizTalk Projects, and then select BTAHL7Projects.
In the Templates section, select BTAHL7V2XCommon Project, and then click OK.
In Solution Explorer, notice that the three schemas (ACK_24_GLO_DEF.xsd ACK_25_GLO_DEF.xsd, and MSH_25_GLO_DEF.xsd) are included in the project.
Step 1A: Assign a Strong Key to the Assembly and Deploy
Use the following procedure to assign a strong key to the assembly and then deploy the assembly.
To assign a strong key and deploy the assembly
Start Visual Studio 2012 Command Prompt.
At the Visual Studio command prompt, browse to the <drive>:\Program Files\Microsoft BizTalk <version> Accelerator for HL7 \SDK\End-to-End Tutorial folder.
At the command prompt, type sn –k key.snk, and then press ENTER. Ensure the following success message appears in the output window, and then close the command window.
"Key pair written to key.snk."
Note
If the correct message does not appear, use Visual Studio to troubleshoot your assembly.
In Solution Explorer, right-click BTAHL7V2XCommon Project1, and then click Properties.
On the BTAHL7V2XCommon Project1 Property Pages page, click Assembly.
In the right pane, scroll down to the Strong name section, click the field to the right of Assembly Key File, and then click the ellipsis (…) button.
In the Assembly Key File dialog box, browse to <drive>:\Program Files\Microsoft BizTalk <version> Accelerator for HL7\SDK\End-to-End Tutorial, select key.snk, and then click Open.
On the BTAHL7V2XCommon Project Property page, click OK to save your changes.
In Visual Studio, 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: Create Common Schemas for V2.3.1.