SlideShare a Scribd company logo
8/30/2014
1
BizTalk – Message
Schemas
AboorvaRaja Ramar
BizTalk Tutor
CONTENTS
• XML schema in BizTalk Server
• BizTalk Schema Editor
• Document Schemas
• Envelop Schemas
• Property Schemas
• Flat File schemas
• Best Practices
8/30/2014
2
OVERVIEW OF SCHEMA
• BizTalk Server uses the XML Schema definition (XSD) language to define the structure
of all messages that it processes, and refers to these definitions of message structure
as schemas.
• Structured Messages are instances of schema created which is actual data organized in
a xml format, which can take any form, large or small, and target a wide array of back-
end systems and data stores.
• BizTalk Editor is designed to simplify the process of defining a message schema and
validating whether a particular message conforms to that schema. In the process of
defining schemas and validating messages.
8/30/2014
3
XML SCHEMA AND XML INSTANCE
8/30/2014
4
BizTalk uses the XML schema definition language
(XSD)
An XML schema defines:
• Elements
• Attributes
• Data types
• Order of tags
• Mandatory fields
• Multiple occurrences
XML Schema
- - -
<xs:element name="Item">
<xs:complexType>
<xs:sequence>
<xs:element name="Description“ type="xs:string" />
<xs:element name="Quantity" type="xs:int" />
<xs:element name="UnitPrice" type="xs:string" />
<xs:element name="TotalPrice" type="xs:decimal" />
<xs:element name="ItemID" type="xs:long" />
</xs:sequence>
</xs:complexType>
</xs:element>
XML Instance
- -
<Item> <Description>Description_0</Description>
<Quantity>10</Quantity>
<UnitPrice>UnitPrice_0</UnitPrice>
<TotalPrice>10.4</TotalPrice>
<ItemID>10</ItemID>
</Item>
ABOUT SCHEMA
8/30/2014
5
• Schema Types:
 XML: Supports native XML message types
 Flat file: Supports both delimited and positional
files
 Envelope: Supports all the above file types
 Property: Schema in which properties or
attributes are promoted so that they can be used
as key elements
Multiple Schemas:
 Multiple schemas can be present in a Biztalk
solution
 Import: Schema from other namespaces can be
imported into another schema (Data structure
type)
 Include: Schema from the same namespace can be
included in another schema (Data structure type)
 Redefine: Schemas from the same namespace can
be can be included into another schema to derive
the properties (Base data type)
CREATING BIZTALK XML SCHEMAS
8/30/2014
6
• Schema creation steps:
 Create schema from scratch using BizTalk Editor
 Promoting a schema property
 Validating a schema
 Generate an instance message from schema
 Building a Schema Project
CREATING SCHEMA USING BIZTALK EDITOR
8/30/2014
7
Schema
Tree View
XSD
View
PROMOTING A SCHEMA PROPERTY
8/30/2014
8
TESTING A SCHEMA
8/30/2014
9
9
Validate
XSD
Create XMLCreate XML
CREATING SCHEMA AND INSTANCE
8/30/2014
10
• Validate Schema: --
• In Solution Explorer, right-click the schema that you want to validate, and then click Validate
Schema.
• In the Output window, view the results. Success and error messages are displayed in this window.
• Validate Instance:--
• In Solution Explorer, right-click the schema, and then click Properties. The <Schema file
name.xsd> Property Pages dialog box opens.
• If necessary, in the <Schema file name.xsd> Property Pages dialog box, expand the General
section of the General tab by clicking its plus (+) icon.
• In the Input Instance Filename property value field, either type the name of a file or use the ellipsis
(...) button at the right end of the value field to browse for a file that contains the instance message to
be validated against the schema, and then click OK.
• In Solution Explorer, right-click the schema name, and then click Validate Instance.
• In the Output window, view the results. Success and error messages are displayed in this window.
• Generate Instance:--
• In Solution Explorer, right-click the schema for which you want to generate an instance message, and
then click Generate Instance.
• In the Output window, view the results. Success and error messages are displayed in this window.
BUILDING A SCHEMA PROJECT
8/30/2014
11
• Build Project
BizTalk
Project
XSD
Schema
Compile
.NET
Assembly
DLL
Building a Project
 Compiles the project items (schemas)
 Creates an assembly (DLL file)
 Stores the assembly DLL in the project subfolder
(…binDevelopment)
 Displays any errors or warnings in the task list
DOCUMENT SCHEMAS
8/30/2014
12
• An XML Schema described the structure of an XML document.
• A document schema is like any regular schema.
• A document schema is used to define a message. It is a definition on an Xml
message with optional extensions for flat files, EDI file, etc that enable the parsers to
convert the native format into Xml.
ENVELOPE SCHEMAS
8/30/2014
13
• XML Envelope can be used to combine multiple XML documents into single, valid
XML instance message. Without an envelope to wrap multiple documents within a
single root tag, an XML instance message containing multiple documents would not
qualify as well- formed XML.
• You can create an envelope schema in all of the same ways that you can create
an XML schema for a business document.
• To define a schema as an envelope schema, you need to set the Envelope
property of the Schema node to the value Yes.
PROPERTY SCHEMAS
8/30/2014
14
• A property schema enables you to define promoted properties in a common location and
have them referenced by other schemas.
• A property schemas can have namespace but not record or attributes.
• Elements define in the property schema have a name and type.
Promoted property Vs Distinguished fields
• In BizTalk you can promote a property as either distinguished or promoted properties.
Distinguished fields
• In general use distinguished fields if you want to just use them in Orchestration.
• No restriction in filed length.
• No participation in routing
• No separate property schema
Promoted Properties
• These are generally used with routing (send port filters), tracking, correlation etc.
• Field restriction (255)
• Separate property schema
FLAT FILE SCHEMAS
8/30/2014
15
 Although BizTalk is based on the use of XML message formats internally, and you are strongly
encouraged to use XML for the creation of new messages, in some circumstances you need
to work with flat files.
 A flat file, unlike an XML file, does not have any visible inherent structure. A flat file's structure
is evident from its usage and also requires some domain knowledge to understand its
representation.
 Creating structure also applies to flat files, as does the information regarding record and
field node properties.
 But where data fields in XML messages are known to be delimited with tags and attributes of
known syntax, we know little more about delimited and positional files than that they follow
certain conventions.
 A flat file structure is of several types: Delimited flat file, Positional flat file, A flat file with
combination of Delimited and Positional records.
BEST PRACTICES
8/30/2014
16
 Always assign a unique root name for each schema
 Use versioning information in the root node name
 Promote only the properties needed for content based routing
 Use distinguished fields only when required in an orchestration
 Test the validity of a schema by using a known document instance
 Included schemas must be from the same namespace
 Imported schemas must be from different namespaces
8/30/2014
17
8/30/2014
18

More Related Content

PDF
Introduction to BizTalk for Beginners
PPTX
IBM Cloud Pak for Integration 2020.2.1 installation
PPTX
IBM DataPower Gateways - What's new in 2016 v7.5.2
PPTX
Microsoft Azure Networking Basics
PPTX
IBM Cloud Computing
PPT
Cloud computing
PPTX
Hypervisor
PPTX
Server virtualization
Introduction to BizTalk for Beginners
IBM Cloud Pak for Integration 2020.2.1 installation
IBM DataPower Gateways - What's new in 2016 v7.5.2
Microsoft Azure Networking Basics
IBM Cloud Computing
Cloud computing
Hypervisor
Server virtualization

What's hot (20)

PDF
Cloud stack for_beginners
PPTX
Azure fundamentals
PPTX
Hypervisors
PDF
MQ Support for z/OS Connect
PDF
Cloud migration strategies
PDF
Introduction of microsoft azure
PPTX
AWS VS AZURE VS GCP.pptx
PDF
Lecture5 virtualization
PPT
Server virtualization by VMWare
PDF
Cloud Native In-Depth
PPTX
Azure B2C
PDF
Infrastructure as Code
PDF
Microsoft Windows Server 2022 Overview
PDF
Terraform -- Infrastructure as Code
PPTX
Python Programlama Dili
PPTX
Cloud Computing and Microsoft Azure
PPTX
What is private cloud Explained
PPTX
Cloud Computing: Virtualization
PPTX
Server virtualization
PPT
Cloud computing
Cloud stack for_beginners
Azure fundamentals
Hypervisors
MQ Support for z/OS Connect
Cloud migration strategies
Introduction of microsoft azure
AWS VS AZURE VS GCP.pptx
Lecture5 virtualization
Server virtualization by VMWare
Cloud Native In-Depth
Azure B2C
Infrastructure as Code
Microsoft Windows Server 2022 Overview
Terraform -- Infrastructure as Code
Python Programlama Dili
Cloud Computing and Microsoft Azure
What is private cloud Explained
Cloud Computing: Virtualization
Server virtualization
Cloud computing
Ad

Viewers also liked (8)

PPTX
BizTalk Fundamentals
PPT
Biz Talk Overview
PPTX
Introduction to BizTalk Server 2010
PDF
My cool newSlideshow!
PDF
BizTalk Server – Basics principles of maps
PPTX
BizTalk Messaging Architecture
PPTX
Automated Testing for BizTalk HL7 Solutions
PPTX
BizTalk Orchestration Fundamentals
BizTalk Fundamentals
Biz Talk Overview
Introduction to BizTalk Server 2010
My cool newSlideshow!
BizTalk Server – Basics principles of maps
BizTalk Messaging Architecture
Automated Testing for BizTalk HL7 Solutions
BizTalk Orchestration Fundamentals
Ad

Similar to BizTalk Server- Schema (20)

PDF
Markup For Dummies (Russ Ward)
PPTX
Unit iv xml dom
PPT
Lecture 1 - Getting to know XML
PPT
Artefactos biz talk 2006
PPTX
Internet_Technology_UNIT V- Introduction to XML.pptx
PPTX
PDF
Validating Xml
PDF
Er2000
PPTX
Data interchange integration, HTML XML Biological XML DTD
PPTX
XML Introduction
PDF
Xml schema
PPTX
web technology basics in detail about .pptx
PDF
Artificial Intelligence for XMLDevelopment
PPT
Xml iet 2015
PPT
XML, XML Databases and MPEG-7
Markup For Dummies (Russ Ward)
Unit iv xml dom
Lecture 1 - Getting to know XML
Artefactos biz talk 2006
Internet_Technology_UNIT V- Introduction to XML.pptx
Validating Xml
Er2000
Data interchange integration, HTML XML Biological XML DTD
XML Introduction
Xml schema
web technology basics in detail about .pptx
Artificial Intelligence for XMLDevelopment
Xml iet 2015
XML, XML Databases and MPEG-7

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Cloud computing and distributed systems.
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Encapsulation theory and applications.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Modernizing your data center with Dell and AMD
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Cloud computing and distributed systems.
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Encapsulation theory and applications.pdf
Encapsulation_ Review paper, used for researhc scholars
MYSQL Presentation for SQL database connectivity
Agricultural_Statistics_at_a_Glance_2022_0.pdf
NewMind AI Weekly Chronicles - August'25 Week I
NewMind AI Monthly Chronicles - July 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Modernizing your data center with Dell and AMD
Reach Out and Touch Someone: Haptics and Empathic Computing
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Big Data Technologies - Introduction.pptx
Spectral efficient network and resource selection model in 5G networks
20250228 LYD VKU AI Blended-Learning.pptx

BizTalk Server- Schema

  • 2. CONTENTS • XML schema in BizTalk Server • BizTalk Schema Editor • Document Schemas • Envelop Schemas • Property Schemas • Flat File schemas • Best Practices 8/30/2014 2
  • 3. OVERVIEW OF SCHEMA • BizTalk Server uses the XML Schema definition (XSD) language to define the structure of all messages that it processes, and refers to these definitions of message structure as schemas. • Structured Messages are instances of schema created which is actual data organized in a xml format, which can take any form, large or small, and target a wide array of back- end systems and data stores. • BizTalk Editor is designed to simplify the process of defining a message schema and validating whether a particular message conforms to that schema. In the process of defining schemas and validating messages. 8/30/2014 3
  • 4. XML SCHEMA AND XML INSTANCE 8/30/2014 4 BizTalk uses the XML schema definition language (XSD) An XML schema defines: • Elements • Attributes • Data types • Order of tags • Mandatory fields • Multiple occurrences XML Schema - - - <xs:element name="Item"> <xs:complexType> <xs:sequence> <xs:element name="Description“ type="xs:string" /> <xs:element name="Quantity" type="xs:int" /> <xs:element name="UnitPrice" type="xs:string" /> <xs:element name="TotalPrice" type="xs:decimal" /> <xs:element name="ItemID" type="xs:long" /> </xs:sequence> </xs:complexType> </xs:element> XML Instance - - <Item> <Description>Description_0</Description> <Quantity>10</Quantity> <UnitPrice>UnitPrice_0</UnitPrice> <TotalPrice>10.4</TotalPrice> <ItemID>10</ItemID> </Item>
  • 5. ABOUT SCHEMA 8/30/2014 5 • Schema Types:  XML: Supports native XML message types  Flat file: Supports both delimited and positional files  Envelope: Supports all the above file types  Property: Schema in which properties or attributes are promoted so that they can be used as key elements Multiple Schemas:  Multiple schemas can be present in a Biztalk solution  Import: Schema from other namespaces can be imported into another schema (Data structure type)  Include: Schema from the same namespace can be included in another schema (Data structure type)  Redefine: Schemas from the same namespace can be can be included into another schema to derive the properties (Base data type)
  • 6. CREATING BIZTALK XML SCHEMAS 8/30/2014 6 • Schema creation steps:  Create schema from scratch using BizTalk Editor  Promoting a schema property  Validating a schema  Generate an instance message from schema  Building a Schema Project
  • 7. CREATING SCHEMA USING BIZTALK EDITOR 8/30/2014 7 Schema Tree View XSD View
  • 8. PROMOTING A SCHEMA PROPERTY 8/30/2014 8
  • 10. CREATING SCHEMA AND INSTANCE 8/30/2014 10 • Validate Schema: -- • In Solution Explorer, right-click the schema that you want to validate, and then click Validate Schema. • In the Output window, view the results. Success and error messages are displayed in this window. • Validate Instance:-- • In Solution Explorer, right-click the schema, and then click Properties. The <Schema file name.xsd> Property Pages dialog box opens. • If necessary, in the <Schema file name.xsd> Property Pages dialog box, expand the General section of the General tab by clicking its plus (+) icon. • In the Input Instance Filename property value field, either type the name of a file or use the ellipsis (...) button at the right end of the value field to browse for a file that contains the instance message to be validated against the schema, and then click OK. • In Solution Explorer, right-click the schema name, and then click Validate Instance. • In the Output window, view the results. Success and error messages are displayed in this window. • Generate Instance:-- • In Solution Explorer, right-click the schema for which you want to generate an instance message, and then click Generate Instance. • In the Output window, view the results. Success and error messages are displayed in this window.
  • 11. BUILDING A SCHEMA PROJECT 8/30/2014 11 • Build Project BizTalk Project XSD Schema Compile .NET Assembly DLL Building a Project  Compiles the project items (schemas)  Creates an assembly (DLL file)  Stores the assembly DLL in the project subfolder (…binDevelopment)  Displays any errors or warnings in the task list
  • 12. DOCUMENT SCHEMAS 8/30/2014 12 • An XML Schema described the structure of an XML document. • A document schema is like any regular schema. • A document schema is used to define a message. It is a definition on an Xml message with optional extensions for flat files, EDI file, etc that enable the parsers to convert the native format into Xml.
  • 13. ENVELOPE SCHEMAS 8/30/2014 13 • XML Envelope can be used to combine multiple XML documents into single, valid XML instance message. Without an envelope to wrap multiple documents within a single root tag, an XML instance message containing multiple documents would not qualify as well- formed XML. • You can create an envelope schema in all of the same ways that you can create an XML schema for a business document. • To define a schema as an envelope schema, you need to set the Envelope property of the Schema node to the value Yes.
  • 14. PROPERTY SCHEMAS 8/30/2014 14 • A property schema enables you to define promoted properties in a common location and have them referenced by other schemas. • A property schemas can have namespace but not record or attributes. • Elements define in the property schema have a name and type. Promoted property Vs Distinguished fields • In BizTalk you can promote a property as either distinguished or promoted properties. Distinguished fields • In general use distinguished fields if you want to just use them in Orchestration. • No restriction in filed length. • No participation in routing • No separate property schema Promoted Properties • These are generally used with routing (send port filters), tracking, correlation etc. • Field restriction (255) • Separate property schema
  • 15. FLAT FILE SCHEMAS 8/30/2014 15  Although BizTalk is based on the use of XML message formats internally, and you are strongly encouraged to use XML for the creation of new messages, in some circumstances you need to work with flat files.  A flat file, unlike an XML file, does not have any visible inherent structure. A flat file's structure is evident from its usage and also requires some domain knowledge to understand its representation.  Creating structure also applies to flat files, as does the information regarding record and field node properties.  But where data fields in XML messages are known to be delimited with tags and attributes of known syntax, we know little more about delimited and positional files than that they follow certain conventions.  A flat file structure is of several types: Delimited flat file, Positional flat file, A flat file with combination of Delimited and Positional records.
  • 16. BEST PRACTICES 8/30/2014 16  Always assign a unique root name for each schema  Use versioning information in the root node name  Promote only the properties needed for content based routing  Use distinguished fields only when required in an orchestration  Test the validity of a schema by using a known document instance  Included schemas must be from the same namespace  Imported schemas must be from different namespaces