Microsoft BizTalk Server 2004: Creating Schemas - Exercise 4 Creating a Flat File Schema using the BizTalk Editor (Page 5 of 7 ) Scenario In this exercise, you will create a flat file schema to define the structure of a customer contact record. Tasks Detailed steps - Create the customer contact schema.
This creates the XSD schema that describes the XML structure that flat files will be converted to.
- In Solution Explorer, right-click the NWMessaging project, point to Add, and then select Add New Item.
- In the Add New Item dialog box, in the Templates pane, select Schema; and then, in the Name box, type CustomerOrderFlatFile.xsd and click Open.
- In BizTalk Editor, right-click the <Root > node, and then rename the schema to Customers.
- Right-click the Customers node, select Insert Schema Node, and then select Child Record.
- Rename the child record to Customer.
- Add the following Child Field Elements:
- FirstName
- MiddleName
- LastName
- ContactNo
- Configure the schema as a flat file schema.
This creates properties for the schema node that map to XSD schema annotations.
You will use a child delimiter that specifies a carriage return (0D) and a line feed (0A).
- Right-click the <Schema> node, and then select Properties.
- In the Properties window, click the Schema Editor Extensions property, and then click the ellipsis (…) button.
- In the Schema Editor Extensions window, select the Flat File Extension checkbox, and then click OK.
- Right-click Customers and click Properties
- In the Properties window, set the following properties:
Property | Value | Child Delimiter | 0x0D 0x0A | Child Delimiter Type | Hexadecimal | Child Order | Postfix |
- Right-click Customer and click Properties.
- In the Properties window, set the following properties:
Property | Value | Child Delimiter | , | Child Delimiter Type | Character | Child Order | Infix |
 | Take Microsoft software for a test drive. With MSDN Virtual Labs, you get full access to all available Microsoft products through 90-minute modules, each with its own downloadable manual. Try this lab out now. |
Next: Exercise 5 Validating Schemas and Generating Instance Messages >>
More BrainDump Articles More By MSDN Virtual Labs |