Professional Documents
Culture Documents
Table of Contents
Working with Schemas................................................................................................................. 1
Exercise 1 Creating a New BizTalk Project ..................................................................................................................2
Exercise 2 Creating an XML Schema Using BizTalk Editor ........................................................................................3
Exercise 3 Promoting Schema Properties ......................................................................................................................5
Exercise 4 Creating a Flat File Schema using The Flat File Schema Wizard................................................................6
Exercise 5 Validating Schemas and Generating Instance Messages .............................................................................7
Exercise 6 Assigning a Strong Name to the Assemblies ...............................................................................................9
Exercise 7 Building the Schema Project......................................................................................................................10
Article I.
Working with Schemas
Computer used in this The password for the Administrator account on this computer is: pass@word1
Lab
Page 1 of 10
Working with Schemas
Exercise 1
Creating a New BizTalk Project
Scenario
In this exercise, you will build a new solution for this project by using the Microsoft Visual Studio® .NET 2005
environment. First you will create a new blank solution, and then you will add a new project to the solution. This
project will contain the schemas that you will create in the following exercises.
Page 2 of 10
Working with Schemas
Exercise 2
Creating an XML Schema Using BizTalk Editor
Scenario
In this exercise, you will create a schema to define the structure of the shipping address record. You will also open
an existing schema and use the import function to insert schema nodes within the existing schema.
Page 3 of 10
Working with Schemas
Tasks Detailed Steps
i. Right-click the CustomerOrder root node, click Insert Schema Node and click
Child Record.
j. Click the child record Record, then in the Properties window, select the Data
Structure Type property, and from the list, select ns1:ShippingAddress
(Reference).
The ShippingAddress record is added to the schema.
k. On the File menu click Save All.
Page 4 of 10
Working with Schemas
Exercise 3
Promoting Schema Properties
Scenario
In this exercise, you will promote schema properties so that the property values can be referenced by BizTalk
messaging and orchestration. Promotion is a mechanism that you must use when you want to reference a specific
value within a message instance and then use the value to make message routing decisions. Additionally, the
promoted property will be visible by IntelliSense in Expression Editor when code is required in an orchestration.
Page 5 of 10
Working with Schemas
Exercise 4
Creating a Flat File Schema using The Flat File Schema
Wizard
Scenario
In this exercise, you will create a flat file schema to define the structure of a customer contact record.
Page 6 of 10
Working with Schemas
Exercise 5
Validating Schemas and Generating Instance Messages
Scenario
In this exercise, you will use the Validate Schema command to determine whether the schemas contain any internal
inconsistencies, or have other issues that might prevent them from being used effectively for processing instance
messages. You will also generate a sample instance message for each of the schemas.
Page 7 of 10
Working with Schemas
Tasks Detailed Steps
The window that opens displays the xml that was generated. Notice that the entire
second record is included in the ContactNo element. That is incorrect.
f. Close the preview pane.
Page 8 of 10
Working with Schemas
Exercise 6
Assigning a Strong Name to the Assemblies
Scenario
In this exercise, you will create and assign a strong name for the BizTalk assemblies that you are about to build. A
strongly-named assembly provides several security benefits. A strong name guarantees the uniqueness of the
assembly by assigning a digital signature and a unique key pair. This also protects the lineage of the assembly by
ensuring that no one else can generate a subsequent version of that assembly. And finally, a strong name provides a
strong integrity check to guarantee that the contents of the assembly have not been changed since it was built.
Page 9 of 10
Working with Schemas
Exercise 7
Building the Schema Project
Scenario
In this exercise, you will build the project to generate an assembly that contains the resources (the schemas) that you
have just created. This also ensures that that there are no compile-time errors in the work you have completed so far.
Page 10 of 10