BrainDump
  Home arrow BrainDump arrow Page 6 - 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 5 Validating Schemas and Generating Instance Messages


    (Page 6 of 7 )

    Scenario

    In this exercise, you will use the Validate Schema command to determine whether the schemas contain any internal inconsistencies, or have other issues that might prevent them from being used effectively for processing instance messages. You will also generate a sample instance message for each of the schemas.

            Tasks              Detailed steps

    1. Validate the schema file.

      Validating the schema insures that an XML document could be created that would be well-formed and valid against this particular schema.

        1. In Solution Explorer, right-click CustomerOrder.xsd, and then select Validate Schema.

          The results of the schema validation are displayed in the output window.

    2. Generate a sample instance message for the schemas.

      Generating a sample instance provides a visual test, as well as a document to pass through the process for testing.

        1. Right-click the CustomerOrder.xsd, and then select Properties.
        2. In the CustomerOrder.xsd Property Pages dialog box, in the Output Instance Filename box, type C:\Labs\Work\GeneratedCustomer Order.xml and then click OK.
        3. Right-click the CustomerOrder.xsd schema, and then select Generate Instance.

          A sample instance message is saved in C:\Labs\Work, and a link to the XML instance is shown in the Output window. Click the link while pressing Ctrl to open the resulting XML file.

    3. Validate the sample instance message.

      The CustomerOrder.xml XML file is provided so that you can check for errors in the schema you just created.

        1. Right-click the CustomerOrder.xsd schema, and then select Properties
        2. In the CustomerOrder.xsd Property Pages dialog box, in the Input Instance Filename box, type C:\Labs\Work\CustomerOrder.xml and then click OK
        3. Right-click the CustomerOrder.xsd schema file, and then select Validate Instance.

          The results of the instance validation are displayed in the output window. This step validates the schema against an actual XML file.

    4. Validate the flat file sample instance.

      The CustomerOrder.txt flat file is provided so that you can check for errors in the schema you just created.

        1. a. Right-click CustomerOrderFlatFile.xsd, and then select Properties.
        2. In the CustomerOrderFlatFile.xsd Property Pages dialog box, set the following properties: 

           

           

          Property

          Value

           

          Input Instance Filename

          C:\Labs\Work\CustomerOrder.txt

           

          Validate Instance Input Type

          Native

           

           


        3. Click OK.
        4. Right-click the CustomerOrderFlatFile.xsd schema file, and then select Validate Instance.

          The results of the instance validation are displayed in the output window. This step validates the schema against an actual flat file.

    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 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek