Step 2: Create and Deploy the Sample X12 Schema

Step 2 of 11

In this step, you build and deploy the project that provides a sample EDI X12 schema that is required to process the incoming EDI X12 interchange transported over AS2. For this tutorial, that schema is X12_00401_864.xsd. You do not need to change the project that is shipped with the AS2 tutorial; you just need to build it.


The schema file X12_00401_864.xsd that this tutorial uses is stored in the folder \Program Files (x86)\Microsoft BizTalk Server <VERSION>SDK\AS2 Tutorial\Schemas. It has already been added to the Schemas project that you will build and deploy in this step. This schema is different from the X12_00401_864.xsd file downloaded onto your computer by executing MicrosoftEdiXsdTemplates.exe in the folder \Program Files (x86)\Microsoft BizTalk Server <VERSION>XSD_Schema\EDI. The tutorial will only work if you use the X12_00401_864.xsd file that has been added to Schemas.btproj.


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

Create and deploy the sample X12 schema

  1. Start Microsoft Visual Studio as an administrator.

  2. In Visual Studio, open the solution \Program Files (x86)\Microsoft BizTalk Server <VERSION>SDK\AS2 Tutorial\Schemas\Schemas.sln.


    This topic assumes that you have already added a reference from your application to the BizTalk EDI Application, which contains EDI schemas, pipelines, and orchestrations. If not, see Add a Reference to the BizTalk Server EDI Application.

  3. Right-click the Schemas project, and then click Properties. Click the Signing tab in project designer. Check the Sign the Assembly checkbox, for Choose a strong key name file, select <New…> and enter Schemas.snk. Clear Protect my key file with a password and then click OK. Close the project properties dialog and save the changes.

  4. Build and deploy Schemas.btproj.

Next Steps

You configure a party and business profile for your organization (Contoso), as described in Step 3: Configure a Party and Business Profile for Your Organization.

See Also

EDI Document Schemas