Biztalk Schema

  Home  BizTalk Server  Biztalk Schema

“Biztalk Schema related Frequently Asked Questions by expert members with job experience as Biztalk Schema. These questions and answers will help you strengthen your technical skills, prepare for the new job interview and quickly revise your concepts”

44 Biztalk Schema Questions And Answers

4⟩ Explain me what is a canonical schema?

A canonical schema is a design pattern, which is applied within a service oriented paradigm, and within BizTalk server context establish the loose coupling between systems. Through performing the transformation of messages from one system to canonical schema and from the canonical schema to message of another system, systems have no direct relation with each other. The canonical schema can also be viewed as an internal schema in BizTalk and aid you in structuring your solution through best practice of creating separate projects for maps, orchestrations, internal and external schemas. Another advantage of using a canonical schema is that it reduces the number of transformations you need. If you need a to map a few types of inbound message coming from different parties to a few outbound messages, you can create a map to your canonical schema for each inbound schema and then a map from your canonical schema to each outbound schema. If for example you have three types of incoming that needs to be mapped to three types of outgoing messages you will only need to build and maintain six maps instead of nine.


6⟩ Please explain what is the Message?

Each message in BizTalk Server is considered a multi-part message and is made up of zero or more parts. Each message with one or more parts has one of these parts identified as the body part. Each part consists of a binary chunk of data which can represent an XML document, a flat file, a serialized .NET class, or other binary stream of data. You use the body part of the message to identify the type of the message that can be used for routing.


7⟩ Tell us what is the purpose of a document schema?

The schema is basically a contract of your message and defines it. The XML Schema definition (XSD) language defines the structure of an XML instance message, and this is the intended purpose of XSD, such schemas use XSD in a straightforward way.

A schema is a term borrowed from the database world to describe the structure of data in relational tables. In the context of XML, a schema describes a model for a whole class of documents.


8⟩ Tell us does BizTalk support synchronous communication?

BizTalk Server architecture is asynchronous for scalability reasons. However, the architecture of the BizTalk Messaging Engine enables exposing a synchronous message exchange pattern on top of these asynchronous exchanges. To do this, the engine handles the complex task of correlating the request and response messages across a scaled-out architecture by linking together a number of asynchronous message exchanges to expose a synchronous interface.


10⟩ What is group Max Occurs?

Specifies the maximum number of times that to the underlying group content of the selected All Group node can occur.


11⟩ What is max Occurs?

Specifies the maximum number of times that the element corresponding to the selected Record node can occur.


12⟩ Tell us what is the purpose of an envelope schema?

An envelope schema is a special type of XML schema. Envelope schemas are used to define the structure of XML envelopes, which are used to wrap one or more XML business documents into a single XML instance message. When you define an XML schema to be an envelope schema, a couple of additional property settings are required, depending on such factors as whether there is more than one root record defined in the envelope schema.


14⟩ What is min Occurs?

Specifies the minimum number of times that the element corresponding to the selected Record node can occur.


15⟩ What is group Min Occurs?

Specifies the minimum number of times that the underlying group content of the selected All Group node can occur.


16⟩ Explain me can schema have multiple root nodes?

Yes, a schema (XSD) can have multiple root nodes. In case you have a schema with multiple root nodes you will end up with multiple message types declared in BizTalk, one for every root node. So when you want to create a message you will need to specify exactly which message type you are going to use!


18⟩ Explain me how BizTalk engine performs a validation of an instance of the message against the Schema?

By default, BizTalk Server will examine only the namespace and the root node name of a message to identify and validate the schema, and will not detect extra elements in the message body. To perform a deep validation of a message format, you have to create a Custom Pipeline with the XML Disassembler component.


20⟩ Tell us what is Rehydration?

When a message is received, or else when a timeout has expired, the orchestration engine can be automatically triggered to rehydrate the instance – it is at this point that the orchestration engine loads the saved instance of the orchestration into memory, restores the state, and runs it’s from the point it left off.