BrainDump
  Home arrow BrainDump arrow Page 3 - Microsoft BizTalk Server 2004: Creating Sc...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
BRAINDUMP

Microsoft BizTalk Server 2004: Creating Schemas
By: MSDN Virtual Labs
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 9
    2006-02-16

    Table of Contents:
  • Microsoft BizTalk Server 2004: Creating Schemas
  • Exercise 1 Creating a New BizTalk Project
  • Exercise 2 Creating an XML Schema using the BizTalk Editor
  • Exercise 3 Promoting Schema Properties
  • Exercise 4 Creating a Flat File Schema using the BizTalk Editor
  • Exercise 5 Validating Schemas and Generating Instance Messages
  • Exercise 6 Assigning a Strong Name to the Assemblies

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Microsoft BizTalk Server 2004: Creating Schemas - Exercise 2 Creating an XML Schema using the BizTalk Editor


    (Page 3 of 7 )

    Scenario

    In this exercise, you will create a schema to define the structure of the shipping address record. You will also open an existing schema and use the import function to insert schema nodes within the existing schema.

            Tasks              Detailed steps

    1. Create the shipping address schema.

      Selecting the Schema template causes BizTalk Editor to start.

        1. In Solution Explorer, right-click the NWMessaging project, point to
          Add, and then select Add New Item
        2. In the Add New Item dialog box, in the Templates pane, select Schema
        3. In the Name box, type ShippingAddress.xsd to name the schema.
           

        4. Click Open to open the blank schema in BizTalk Editor. 
        5. View the Properties pane.

          The schema tree (left pane) and XSD view (right pane) appear in BizTalk Editor. Also, the new schema (ShippingAddress.xsd) is added to Solution Explorer.

    2. Create the schema record.

      The Root node should always be renamed using a meaningful name that represents the type of document described by the schema. When possible, use a root node name unique throughout the enterprise.

      You can right-click an empty area of the Toolbar and select BizTalk Editor to display a floating toolbar of BizTalk Editor options.

        1. In the Schema Tree, right-click the Root node, and then select Rename.

        2. Type ShippingAddress as the new name, and then press Enter

        3. Right-click the ShippingAddress (root) node, point to Insert Schema Node, and then select Child Field Element to add the following fields (repeat this step for each field element):

          • City 

          • Country 

          • Street 

          • Email 

          • Fax 

          • State 

          • Zip

          • Phone

            The completed schema should look like this:



        4. Click File | Save All.

    3. Open an existing schema and import a new child record.

      This allows you open an existing schema and use the import function to insert schema nodes within an existing schema.

      You can show properties in alphabetic order by clicking the Alphabetic button at the top of the Properties window.

        1. In Solution Explorer, right-click the NWMessaging project, point to Add, and then select Add Existing Item
        2. Navigate to C:\Labs\Work, and then double-click the CustomerOrder.xsd schema to add it to the project.

          The schema is added to Solution Explorer.

        3. In Solution Explorer, double-click CustomerOrder.xsd to open it in BizTalk Editor.

          If the Properties window is not visible, then in BizTalk Editor right-click the <Schema> node of CustomerOrder.xsd, and then select Properties.

        4. In the Properties window, click the Imports property, and then click the ellipsis (…) button.
        5. In the Imports dialog box, verify that XSD Import is selected from the drop down box, and then click Add
        6. In the BizTalk Type Picker, expand Schemas, select NWMessaging.ShippingAddress, and then click OK
        7. In the Imports window, click OK
        8.  Right-click the CustomerOrder root node, select Insert Schema Node, and then click Child Record
        9. Right-click the child record Record and click Properties.
        10. In the Properties window, select the Data Structure Type property and, from the drop-down box, select ns1:ShippingAddress (Reference).
          The ShippingAddress record is added to the schema. 

        11. Click File | Save All.

    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.

    More BrainDump Articles
    More By MSDN Virtual Labs


       · We hope you found this article from MSDN Virtual Labs to be enjoyable and...
     

    BRAINDUMP ARTICLES

    - Introduction to Office Live Workspace
    - Using MS Excel for One-way Analysis of Varia...
    - Comparing Data Sets Using Statistical Analys...
    - Import Blogger Posts into WordPress Using Wi...
    - Download WordPress from an FTP Server and Ru...
    - Install and Run WordPress in XAMPP Local Host
    - What Windows 7 Brings to the Table
    - Virtualization and Sandbox Detection
    - Advanced Firebug Techniques in Windows XP Ho...
    - Editing CSS with Firebug in Windows XP Home
    - Using Firebug in Windows XP Home
    - Migrating to Exchange Server 2007
    - Using System Restore on a Non-Bootable PC
    - Finding Logged on Users and More Scripting S...
    - Developing Macro Commands in MS Excel





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek