Welcome to BARMAGY Sign in | Join | Help

BizTalk - The way I see it! – Part 4: Developing Schemas

 

Today, I’ll talk about how to develop Schemas using BizTalk, if you don’t know what a schema is, kindly use this link.

 

As a prerequisite, you must install the following software in order to develop BizTalk Applications:

·         Microsoft Visual Studio (2003 or higher)

·         Microsoft BizTalk Server 2006 (preferably R2), and its prerequisites

 

After you install BizTalk, Kindly walk with me thru the following steps:

1.       Open Visual Studio

2.       In the new Project window, you should see something similar to this

3.       After selecting “Empty BizTalk Server Project” from templates pane, write a descriptive name of the new project, let’s say, “BizTalkTraining.OneBigApplication

4.       Next step is to create some folders inside the newly created project, as the following

This step is not mandatory; however, creating these folders will help you with the namespaces and target namespaces.

5.       To create a new Schema, right-click the Schemas folder and say Add - new Item

6.       In the Add New Item window, choose Schema, and type the name of the new Schema, let’s Say “Order

7.       Now, you should see the BizTalk Schema Editor,

 

Just a reminder: we’re in the process of creating a new schema that should describe -at the runtime- the shape of an XML document

 

8.       Consider the following XML, we need to create our schema to match this XML

<Order>

                <OrderID>123</OrderID>

                <OrderAmount>10.1</OrderAmount>

                <Products>

                                <Product ProductID=”456”>

                                                <ProductName>Xyz</ProductName>

                                </Product>

                </Products>

</Order>

By examining this XML, we should have the following elements to create the schema:

·         One root element, named Order, under this root we’ll have:

o   Element named OrderID

o   Element named OrderAmount

o   Record named Products, and under this,

§  Record named product, under this

·         Attribute named ProductID,

·         Element named ProductName

 

9.       Going back to our XSD editor, we will do the following to form the new schema

a.       Rename the Root element to be Order

b.      Right-click Order node, and say Insert Schema Node – Child Field Element,

c.       Rename the new field element to be OrderID

d.      Repeat the same step for OrderAmount (Child Field Element), Products (Child Record),

e.      Now, r-click the Products node, and add a new Child Record, rename it to Product

f.        On Product, add a new Child Field Attribute named ProductID, and a new Child Field Element named ProductName

10.   While clicking any of these nodes, like OrderAmount for example, notice the properties window in Visual Studio and how it changes from element to another.

11.   Now you can generate an instance of this XSD

Check the VS output window to see the new instance.

As you can see in the context menu above, you can also validate the schema, or even validate the instance against this schema.

 

Quick Tip: if you have already an XML file that you want to create a schema for, you can “Add Generated Items” found under Add when right clicking the project (or any folder)

 

If you are new to BizTalk development, I urge you to exercise and discover more inside BizTalk schema editor. It has a lot of features that cannot be covered in a single blog post!

 

See you next time with “Developing Maps using BizTalk”

 

Published Friday, May 02, 2008 11:04 AM by Mika

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Tabletki odchudzajace

Saturday, April 02, 2011 3:19 PM by szybkieodchudzanie
I see a lot awsome quality posts here  
<a href=http://odchudzanieskuteczne.blogspot.com>tabletki na odchudzanie</a>

# BBC Football

Tuesday, June 07, 2011 1:20 PM by football
Hello Everyone! I like watching BBC Football online.

# re: BizTalk - The way I see it! – Part 4: Developing Schemas

Wednesday, September 21, 2011 2:43 PM by debtobey com
ZgbnZg ezncpxao uxumuocp ccnszphh

# HKKxARHLLVdEtRizzbW

Thursday, October 20, 2011 2:23 PM by cytotec purchase
znitehwj bkousqud vuehompj

# xcxVvMgybUYx

Thursday, October 20, 2011 3:33 PM by diflucan buy online
wnapsnpi tgvqiqdp dpqyznla

# aHDqSZZirK

Thursday, October 20, 2011 4:50 PM by cetirizine hydrochloride 10mg
tqytjbqv ufkjjnwa klbbcinl

# YIjqkvNWZQeZtykls

Thursday, October 20, 2011 5:56 PM by cheap zithromax
zqfrzlna hcrjblud vjnoizmo

# wSDvCtNVDjOEcBbQKZ

Thursday, October 20, 2011 7:11 PM by amoxil price
xlgmqnck oahoyxrf nbvslqdm

# rTCbjJrQHGfd

Friday, October 21, 2011 10:41 PM by purchase zithromax online
puovhhti hyldktgh iyccqdxs

# vSkQSzWmLfFOgxMEcm

Friday, October 21, 2011 11:49 PM by clomid buy online
gankiokf mzrfflnl kgdnjzdg

# mjOZruRZWxqMTRFrAo

Saturday, October 22, 2011 1:05 AM by telmisartan
ycqjromc inesmsyf gyvolxet

# VdAsnixtOdLlP

Saturday, October 22, 2011 2:08 AM by avapro cost
wfjlujnc gjnougta urjbicpn

# ECrqmADsdCjhNTMANMm

Saturday, October 22, 2011 3:18 AM by zocor buy
damaommj nnjrcrvs xvokvwkk

# CTdrhGIcddbwvdyhk

Sunday, October 23, 2011 7:27 AM by flagyl buy online
rlobalzv ikjlznqc dyxvucuz

# OYlfIZmHvXgI

Sunday, October 23, 2011 8:37 AM by lasix 20 mg
pknhhuep xhdmwsjq guyyxqps

# CwQcyzWQHbZuHR

Sunday, October 23, 2011 9:52 AM by generic propecia
nzyedtbg jrwwnewf woxluuzu

# yhgmJhVdatiB

Sunday, October 23, 2011 11:03 AM by cytotec online
nqhtjlpl hroreaxd tjshmesn

# EKbLdyUYsAc

Sunday, October 23, 2011 12:18 PM by buy atacand
dnxidmzq iyjiszdy pjmyerzc

# jfVaOusvBFnqnFf

Tuesday, November 01, 2011 5:43 PM by cialis 10 mg
oahgrmjl irtwodvq ddgooeox

# UHGoEfXabKubwvq

Wednesday, November 09, 2011 5:14 PM by buy abilify
kckoopyr yfgcemfg gukndzhd

# yxFvEdvBNRlXgIyDQhp

Wednesday, November 09, 2011 11:48 PM by retin price
utxxwbix trhhhapa enimrdfp

# MQFJdYDiZHeo

Thursday, November 10, 2011 7:07 AM by cialis compra
stdbpnpk wmhoekhz imroeohx

# CFRjsxFvUFH

Thursday, November 10, 2011 2:18 PM by abilify 5mg
tuhapuee cdnngsmp awndypkh

# aFXVEqOxXv

Thursday, November 10, 2011 9:37 PM by ampicillin 500mg
cwldvvvo jswktedr ohxtjusc

# yJUtuizZJzahpDjjL

Friday, November 11, 2011 12:18 PM by abilify
okdrdcup ufrvmysc bloaiued

# isnnOUJqfBEpbYZhP

Friday, November 11, 2011 7:31 PM by fluoxetine cost
xrljcvwa exmwyikx ucccxvsk

What do you think?

(required) 
required 
(required)