Have knowledge of custom xslt?

Response on this question as per your experience.

How to implement xslt in BizTalk mapping

There are two ways to implement custom xslt in BizTalk mapping.

  1. Implement xslt for full mapping
  2. partially implement xslt by using Script functoid

For more details click here.

How to add CDATA in mapping

You can do that by setting the property called CDATA section elements.   

If you wanted multiple nodes on the output to have CDATA tags you would set the CDATA section elements property to:
”ns0:Node1 ns0:Node2 ns0:Node3”

Use of scripting funtoid

The Scripting functoid enables you to use custom script or code at run time to perform functions otherwise not available. For example, you can call a .NET assembly at run time by using the Scripting functoid and writing your own custom functions.

The Scripting functoid supports the following languages:

  • C# .NET
  • JScript .NET
  • Visual Basic .NET
  • Extensible Stylesheet Language Transformations (XSLT)
  • XSLT Call Templates

How to test and generate xslt from mapping

Click here for details

Is it possible to have a global variable in a map?

Yes, global variable can be used in BizTalk maps. A good place to create and initialize global variables is in a scripting functoid at the top of the map so you always know where to look for them.

Is it possible to have a map with n incoming messages to n outgoing messages?

Yes, but you need to create these kinds of maps inside Orchestrations only! This type of maps must be created using the Transform shape within an Orchestration. Orchestration Editor creates an envelope schema which includes all nested message schemas. Once created you can use this map on ports as well.

Is it possible to have map with n incoming messages to 1 outgoing messages?

Yes. And the only place that map can be created with multiple schemas is in a Transform shape within an Orchestration.

Is it possible to have a map with 1 incoming message to n outgoing messages?

Yes, but only inside Orchestrations! This type of maps must be created using the Transform shape within an Orchestration.

What is the difference between Value Mapping and Value Mapping Flattening functoid?

Value Mapping: Use the Value Mapping functoid to return a value from one of two input parameters. If the value of the first input parameter is “true”, then the value of the second input parameter is returned. This functoid requires two input parameters. If your destination schema is flat, use the Value Mapping (Flattening) functoid instead of the Value Mapping functoid. When both the source and the destination schemas define parallel repeating structures between which the relevant data is mapped.

Value Mapping (Flattening): Use the Value Mapping (Flattening) functoid to return a value from one of two input parameters and to flatten the source message. If the value of the first input parameter is “true”, then the value of the second input parameter is returned. This functoid requires two input parameters. If your destination schema is flat, use this functoid instead of the Value Mapping functoid. When the source schema defines a repeating structure and the destination schema defines a flat structure, such that different instances of the repeating structure in the source schema are intended to be mapped into the unique elements in the flat structure in the destination schema.

  • If value of the incoming field cannot be mapped, then Value Mapping Functoid will create an empty destination node ();
  • While Value Mapping Functoid (Flattening) will not create an empty node.
  • This default behavior of Value Mapping Functoid can be changed with the help of other functoid and scripting

Is it possible to override the mapping of Mass copy?

It can be done on line by line basis. Example a field need to be passed a current date, then have the Date functoid placed a link to destination field this will override mass copy.

Is it possible to reuse method of a Scripting Functoid in other Scripting Functoid?

Yes, it is possible. To do so the method at first place should be declared as public and then it can be called from other scripting functoid.

Is it possible to exclude xml declaration <?xml…?> in the output file?

Yes. To exclude xml declaration, the attribute “omit-xml-declaration” is to be set as “yes.”

Can value from Orchestration variable be passed to the destination field in the Map?

Yes, it can be done, by creating a new schema which will contain fields for capturing values from Orchestration variable and with the help of Load XML to load the values. This schema can be used along with another source schema and mapping can be done. The variable also can be passed inside the Assign shop in an expression.

Below links are available for other segment of Interview questions and Answers:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s