Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

BizTalk 2010 Recipes : Messaging and Pipelines - Creating Validation Pipelines

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
3/31/2011 5:05:45 PM

1. Problem

You have an inbound or outbound document that requires validation beyond checking for well-formed XML.

2. Solution

You can use a send or receive pipeline to perform a strict validation of an instance of an XML document by providing validation against an XSD schema. BizTalk Server provides an XML Validator pipeline component for validating XML (schema) documents. If the inbound or outbound document is not XML, it must be converted to XML prior to validation. The following steps define how to create a receive pipeline that can be used to validate an XML document. The steps are similar to those for configuring a send pipeline.

  1. Open the project that will contain the pipeline.

  2. Right-click the project, and select Add => New Item.

  3. In the Add New Item dialog box, select Receive Pipeline, and provide a name. Then click Add.

  4. Drag the XML Validator component from the BizTalk Pipeline Components section of the toolbox to the Drop Here location under the Validate label, as shown in Figure 1.

    Figure 1. Creating an XML validator pipeline
  5. Select the ellipsis next to the Document Schemas property for the XML Validator component (in the Properties window) to launch the Schema Collection Property Editor dialog box, shown in Figure 2.

  6. Use the Schema Collection Property Editor to add schemas to the collection, and then click OK.

  7. Build and deploy the project.

Now that you have created the validation pipeline, when configuring the Receive Pipeline property of a receive location, select the pipeline from the list of available receive pipelines.

Figure 2. Schema Collection Property Editor dialog box

3. How It Works

Strict validation of an XML document is achieved with the use of a validation pipeline. The XMLReceive receive pipeline and XMLTransmit send pipeline that come with BizTalk Server will validate only that an XML document is well formed. It will not perform strict validation of the document, including data types and restriction values (length, enumerations, patterns, and so on).

You use the XML Validator pipeline component to validate the instance document. This component may be placed in any pipeline stage, except the Disassemble or Assemble stages. If you do not add a schema using the Schema Collection Property Editor dialog box for the component, the component will attempt to locate an appropriate schema to validate against based on the namespace and root node of the document. If no schema is found to validate against, or the document fails validation, an error will occur, and the instance will be terminated.

Other -----------------
- BizTalk 2010 Recipes : Messaging and Pipelines - Using Send Port Groups
- Managing Windows Server 2008 R2 Disks (part 4) - Working with Virtual Hard Disks
- Managing Windows Server 2008 R2 Disks (part 3) - Creating a Fault-Tolerant Volume Using Diskpart.exe
- Managing Windows Server 2008 R2 Disks (part 2) - Creating Fault-Tolerant Volumes Using Disk Management
- Managing Windows Server 2008 R2 Disks (part 1)
- SharePoint 2010 PerformancePoint Services : Examining Excel Services Reports
- SharePoint 2010 PerformancePoint Services : Examining Analytic Grid Reports
- SharePoint 2010 PerformancePoint Services : Examining Analytic Chart Reports
- Windows Server 2003 : Planning a Secure Baseline Installation - Identifying Client and Server Default Security Settings
- Windows Server 2003 : Planning a Secure Baseline Installation - Planning a Security Framework
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server