Presentation is loading. Please wait.

Presentation is loading. Please wait.

Module 2: Creating Schemas. Overview Lesson 1: Introduction to BizTalk Schemas Lesson 2: Creating XML and Flat File Schemas.

Similar presentations


Presentation on theme: "Module 2: Creating Schemas. Overview Lesson 1: Introduction to BizTalk Schemas Lesson 2: Creating XML and Flat File Schemas."— Presentation transcript:

1 Module 2: Creating Schemas

2 Overview Lesson 1: Introduction to BizTalk Schemas Lesson 2: Creating XML and Flat File Schemas

3 Lesson 1: Introduction to BizTalk Schemas Reviewing XML Terminology What Are XML Namespaces? How Does BizTalk Use XML Namespaces? What Is a BizTalk XML Schema? Supported BizTalk Schema Types Flat File Structures

4 XML Standards Reviewing XML Terminology Elements Attributes Namespaces in XML XML Schema (XSD) XML Path Language (XPath) Extensible Stylesheet Language Transformations (XSLT) Document Object Model (DOM) SOAP Web Services Description Language (WSDL) Elements Attributes Namespaces in XML XML Schema (XSD) XML Path Language (XPath) Extensible Stylesheet Language Transformations (XSLT) Document Object Model (DOM) SOAP Web Services Description Language (WSDL)

5 widget widget widget widget widget widget widget widget Namespaces What Are XML Namespaces? Provide unique names for elements and attributes Prevent naming conflicts with other schemas Use the xmlns attribute to declare the namespace the element belongs to A prefix is added to the declaration to remove ambiguity Provide unique names for elements and attributes Prevent naming conflicts with other schemas Use the xmlns attribute to declare the namespace the element belongs to A prefix is added to the declaration to remove ambiguity

6 BizTalk Server How Does BizTalk Use XML Namespaces? Schema A TargetNamespace= “NewOrders” Schema B TargetNamespace= “OrdersUpdate” Message A TargetNamespace= “NewOrders” Message B TargetNamespace= “OrderUpdate” Message C TargetNamespace= “Inventory” No Match

7 What Is a BizTalk XML Schema? BizTalk uses the XML schema definition language (XSD) Widget A1234 Widget A1234

8 Supported BizTalk Schema Types Message TypeDetails XML Supports native XML message types Defined in XML Schema definition language (XSD) Flat File Supports delimited or positional file formats XML tags used to represent values Tag information stored using the annotation capabilities of XSD EDI Specially formatted text message BizTalk supports EDIFACT and X12 formats XSD annotations used to define format Node StructureStartLength Description Delimited050 UnitPrice Delimited5010 Quantity Delimited6010 TotalPrice Delimited7010 ItemID Delimited8010 Status Delimited991 UnitPrice Item Description Quantity TotalPrice ItemID Status ISA:00: :00: :01: :01: :041201:1217:U:00403: :0:P: *~GS:CT: : : :1217:128:X: ~ST:831: ~BGN :00: : ~N9:BT: ~TRN:1: ~AMT:2:10

9 Flat File Structures Delimited flat files Fields separated by a specified delimiter Have a common end-of-record terminator Fields separated by a specified delimiter Have a common end-of-record terminator John, Smith, 123 Main St., “Learning BizTalk Server 2010” Positional flat files Fields are fixed length Have a common end-of-record terminator Fields are fixed length Have a common end-of-record terminator John Smith 123 Main St. Learning BizTalk Server 2010

10 Lesson 2: Creating XML and Flat File Schemas Methods for Creating BizTalk XML Schemas Generating Schemas Creating a Schema by Using the BizTalk Editor Using Multiple Schemas Testing a Schema Demonstration: Creating and Testing a Schema Using the Flat File Schema Wizard Demonstration: Creating and Testing a Flat File Schema Building a BizTalk Project

11 Methods for Creating BizTalk XML Schemas Schema creation methods Create from scratch using BizTalk Editor Import or include existing types Generate from an instance message Migrate an older XDR schema to an XSD schema Create from scratch using BizTalk Editor Import or include existing types Generate from an instance message Migrate an older XDR schema to an XSD schema

12 Schema creation methods XDR schema DTD A well-formed XML document XDR schema DTD A well-formed XML document Generating Schemas

13 Creating a Schema by Using the BizTalk Editor XSD View Schema Tree View

14 Using Multiple Schemas MethodUsage Import Accesses and uses types defined in the imported schema Provides for using types from schemas in other namespaces Include Accesses and uses types defined in the included schema Provides for using types from schemas in the same namespace Redefine Accesses and uses types defined in the redefined schema Provides for using types derived from a schema in the same namespace Purchase Order Date Company City Ship To Contact State Zip Unit Cost Item Part Number Description Weight

15 Testing a Schema Create XML Validate XSD Validate XML

16 Demonstration: Creating and Testing a Schema In this demonstration, you will see how to: Use the BizTalk Editor to create a schema Validate and test a schema

17 Flat File Schema Wizard Using the Flat File Schema Wizard Graphical tool for defining flat file schemas Can define schemas for delimited or positional flat files Graphical tool for defining flat file schemas Can define schemas for delimited or positional flat files

18 Demonstration: Creating and Testing a Flat File Schema In this demonstration, you will see how to: Create a schema by using the Flat File Schema Wizard Validate and test a flat file schema

19 Building a BizTalk Project Building a project Compiles the project items (schemas, maps, orchestrations, pipelines) Creates an assembly (DLL file) Stores the assembly in the project subfolder (…\bin\Development) Displays any errors or warnings in the task list Compiles the project items (schemas, maps, orchestrations, pipelines) Creates an assembly (DLL file) Stores the assembly in the project subfolder (…\bin\Development) Displays any errors or warnings in the task list Compile Build Project.NET Assembly.DLL BizTalk Project XSD Schema

20 Lab: Creating and Configuring BizTalk Schemas Exercise 1: Creating a New BizTalk Project Exercise 2: Creating an XML Schema Exercise 3:Creating a Flat File Schema Exercise 4:Generating a Schema from an XML Message Instance


Download ppt "Module 2: Creating Schemas. Overview Lesson 1: Introduction to BizTalk Schemas Lesson 2: Creating XML and Flat File Schemas."

Similar presentations


Ads by Google