Posts

Showing posts with the label BizTalk Orchestration

Message splitting in an Orchestration

Image
 Introduction In this blog post, we will try to understand how we can split messages in an orchestration. Steps Let's create a new BizTalk solution and project named ' POCSplitMessages '. Configure the signing key and name the application ' POCSplitMessages ' Add references to the below dlls Microsoft.BizTalk.Pipeline --> get it from (C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.BizTalk.Pipeline\v4.0_3.0.1.0__31bf3856ad364e35\Microsoft.BizTalk.Pipeline.dll) Microsoft.XLANGs.Pipeline --> get it from(C:\Program Files (x86)\Microsoft BizTalk Server\Microsoft.XLANGs.Pipeline.dll) Create a Racquet Schema in that project. Right Click on the Project --> Add --> New Item --> Schema Let us now create an envelope Schema named 'RacquetsEnvelope'. Right Click on the Project --> Add --> New Item --> Schema Name the root node 'Racquets' Click on Schema node , go to properties and set 'Envelope' to 'Yes'. Go to Import...

Exploring Message Assignment in BizTalk: A Step-by-Step Guide

Image
 Introduction: Welcome to this blog where we will explore message assignment shapes and learn how to assign values to different fields in a message variable. Step-by-Step Guide: 1.             Start by creating a new BizTalk project and solution named "POCMessageAssignment." 2.             Create a strong name key file (snk) and name it "POCMessageAssignment.snk." Refer to this snk file in your project. 3.             In the deployment tab of the project, set the application name as "POCMessageAssignment" and save the project. 4.             Add a new schema to the project named "SourceA" with the following fields •              IdentificationNumber (distinguish this field) •   ...

Important lines of code in BizTalk

 strError = ex.ToString();  Here's an explanation of the code: "ex" is an exception object that represents an error or an exceptional condition that occurred during the execution of the code. The "ToString()" method is called on the exception object "ex". This method is used to convert the exception object into a string representation. The resulting string representation of the exception is then assigned to the variable "strError". varBizTalkConnStr=System.Configuration.ConfigurationSettings.AppSettings.Get("LookupDB"); Here's an explanation of the code: " varBizTalkConStr " is a variable that will hold the retrieved configuration setting value. " System.Configuration.ConfigurationSettings " is a class that provides access to the configuration settings in the application's configuration file. " AppSettings " is a property of the ConfigurationSettings class that represents the collection of key-v...

How to map multiple source message variables to one target message in an orchestration

Image
 Scenario In some cases, you might want to map multiple source variables to one target schema. This is because the data might be spread across 2 schemas. To do this follow the below steps. 1. Create a map via an orchestration. This will help you choose 2 message variables as a source and one Destination schema. Refer Fig 1 and Fig 2.                                               Fig 1                                    Fig 2 2. This will create the map as shown in Fig 3. Here you can see that a map has been created with multiple source schemas and one target schema. Now you can perform your mapping based on the data you have in these 2 schemas. Fig 3 Hope this helps. Happy coding.