Managing Document Specifications for BizTalk Server

Understanding Document Specifications

A document specification is theterminology used to signify a XML document that has been formally described. A document specification describes the records and fields in other documents.

BizTalk Server only processes document specifications. The document specification describes relationships between different data items. This is done by organizing the items in a hierarchy. The document specification is actually a hierarchy of nodes with a root node at the top. The nodes beneath the root node can be records or fields. The lowest level of the hierarchy contains fields. These are the fields that are directly associated with the data contained in the actual document.

When it comes to creating document specifications, you have the following options:

The industry standards commonly used are:

The above standards support Electronic Data Interchange (EDI). Electronic Data Interchange is the electronic transfer of information between two organizations. The EDI standards define how to exchange data electronically. For organizations to do an EDI, they have to agree on specific standard transactions. For EDI to work, each organization must identify itself and be able to interpret the information being exchanged. Simply put, the organizations have to agree on a document specification.

In most cases, the standard specifications contain more records and fields that what you actually need. You can modify the standard specification to cater for your needs:

You can use the BizTalk Editor to modify a standard specification. When performing this type of modification to a standard specification, it is said that you are using a subset of the industry-standard specification. The BizTalk Editor is also used to create your own specifications.

As just mentioned, you can use the BizTalk Editor tool to create a specification or import a specification. The following specifications are available after you install BizTalk Server:

Using BizTalk Editor to Create Document Specifications

To create document specifications and manage document specifications, you will have to use the BizTalk Editor tool.

When you open BizTalk Editor, you will see that the BizTalk Editor window is sorted or organized into three panes:

The specification field on the right pane of the BizTalk Editor window contains a number of tabs that you can use to define the information of the document:

When creating document specifications, remember the following important factors:

The properties on the Declaration tab that you can configure for the root node and records nodes are listed here

The different Fields properties that you can define for fields within the specification tree are listed here:

The root properties that describe the standard and the version that the document specification uses are listed here:

The root and record properties used to define the minimum and maximum number of occurrences is listed here:

The properties that you can configure on the Parse tab guide the parser to determine the structure of the document.

The root and record node properties that you can configure are:

The properties that you can configure for a field are listed here:

How to open a document specification

  1. Open BizTalk Editor.
  2. Click the File menu and then select New.
  3. The New Document Specification dialog box opens.
  4. Double-click X12 to access the X12 standard specifications.
  5. Double-click 4010 to list all available document specifications.

How to open a blank document specification

  1. Open BizTalk Editor.
  2. Click the File menu and then select New.
  3. The New Document Specification dialog box opens.
  4. Click Blank Specification.
  5. Click OK.

How to configure properties for the root node

  1. Open BizTalk Editor.
  2. Click the Blank Specification node.
  3. In the Details pane, click the Declaration tab.
  4. All default values for the root node are displayed.
  5. Click the Name property. In the Value field of the Name property, specify the name for the root node.
  6. Click the Description property. In the Value field of the Name property, provide a description for the root node.

How to add records and fields

  1. Open BizTalk Editor.
  2. Right-click the root node and then select New Record from the shortcut menu.
  3. The new record appears beneath the root node. Rename the new record.
  4. Right-click the new record that you have just created and then select New Field from the shortcut menu.
  5. The new field is added. Rename the new field.
  6. Access the Declaration tab for the new field and then click the Value field for the Data Type property. Specify the data type from the available list.

How to make a record Required or Optional

  1. Open BizTalk Editor.
  2. Select the record that you want to configure.
  3. Switch to the Reference tab.
  4. In the Value field of the Minimum Occurrences property:
    • Select 1 to make the record required.
    • Select 0 to make the record optional.

How to make a field Required or Optional

  1. Open BizTalk Editor.
  2. Select the field that you want to configure.
  3. Switch to the Reference tab.
  4. In the Value field of the Required property:
    • Select Yes to make the field required.
    • Select No to make the field optional.

How to make a record a looping record

  1. Open BizTalk Editor.
  2. Select the record that you want to configure.
  3. Switch to the Reference tab.
  4. In the Value field of the Minimum Occurrences property, select *.

How to specify a cyclical reference

  1. Open BizTalk Editor.
  2. Create a base record.
  3. Select the base record.
  4. Click the Edit menu and then select New Record.
  5. The name of the new record and the base record should be the same.
  6. Press Enter.
  7. On the Declaration tab, double-click the Value field of the Cycle Count property.
  8. Specify the appropriate value for Cycle Count.

How to create a specification based on an existing document

  1. Open BizTalk Editor.
  2. Click the Tools menu and then click Import.
  3. The Select Import Module dialog box opens.
  4. Select Well-formed XML Instance and click OK.
  5. The Import dialog box opens.
  6. Locate the appropriate file and then select Open.
  7. BizTalk Editor next creates a specification based on the file that you have selected.

How to validate document specifications

  1. Open BizTalk Editor.
  2. Open the specification that you want to validate.
  3. Click the Tools menu and then select Validate Specification.
  4. All errors and warnings are displayed on the Warnings tab.

How to create a valid document instance

  1. Open BizTalk Editor.
  2. Click the File menu and then select Open.
  3. Locate and open the specification that you want to work with.
  4. Click the Tools menu and then select Create XML Instance.
  5. The Create Document Instance As dialog box opens.
  6. In the File Name textbox, enter the name for the document instance, and then click Save.

How validate a document instance

  1. Open BizTalk Editor.
  2. Click the Tools menu and then select Validate Instance.
  3. The Validate Document Instance dialog box opens.
  4. Locate and select your document instance and then select Open to validate the instance to the specification.


Top 5 Free Networking Tools

Bookmark Managing Document Specifications for BizTalk Server

Latest Blog Posts


English English GermanGerman SpanishSpanish FrenchFrench ItalianItalian PortuguesePortuguese RussianRussian DutchDutch
GreekGreek HindiHindi JapaneseJapanese KoreanKorean ChineseChinese Chinese (Simplified)Chinese (Simplified) ArabicArabic

Copyright 2009 Tech-FAQ. All rights reserved. Privacy Policy.