Shabbir Hussain Blog
Sunday, 28 December 2014
Thursday, 16 May 2013
Microsoft BizTalk Virtual Labs
Here are links of Microsoft BizTalk virtual labs 2010 where you can play with BizTalk.
(2009)
- MSDN Virtual Lab: BizTalk Server 2010: Examining a BizTalk Application
- MSDN Virtual Lab: BizTalk Server 2010: Creating a BizTalk Orchestration
- MSDN Virtual Lab: BizTalk Server 2010: Creating Transactional Business Processes
- MSDN Virtual Lab: BizTalk Server 2010: Monitoring Business Activity
- MSDN Virtual Lab: BizTalk Server 2010: Automating Business Processes
- MSDN Virtual Lab: BizTalk Server 2010: Calling a Web Service from an Orchestration
- MSDN Virtual Lab: BizTalk Server 2010: Creating a BizTalk Map
- MSDN Virtual Lab: BizTalk Server 2010: Creating and Configuring BizTalk Schemas
- MSDN Virtual Lab: BizTalk Server 2010: Creating Pipelines
- MSDN Virtual Lab: BizTalk Server 2010: Deploying and Managing BizTalk Applications
- MSDN Virtual Lab: BizTalk Server 2010: Integrating with Adapters
- MSDN Virtual Lab: BizTalk Server 2010: Routing BizTalk Messages
(2009)
- Using the WCF Adapters in BizTalk Server
- What Is New In BizTalk Server
- Sending EDI Messages with BizTalk Server
- Processing EDI messages with BizTalk Server
- Integration with POP3 and SharePoint and Routing Failed Messages
- Building an RFID application with BizTalk Server
- Building a WCF Adapter using the WCF LOB Adapter SDK
- Working with Pipelines
- Integrating Business Rules
- Deployment and Management
- Creating BizTalk Server Orchestrations
- Working with Schemas
- Working with Maps
- Processing Flat Files
- Building your first BizTalk Solution
Tuesday, 30 April 2013
Parallel Convoy Messaging Pattern in BizTalk
In this tutorial I will show you how to create a simple example of parallel convoy messaging pattern step wise.
Scenario:
I want a patient to have three main information before admit in hospital. (Personal, Insurance, Ward).
1. Create an empty BizTalk project in Visual Studio.
2. Create four chemas named like (PersonalInfo, InsuranceInfo, WardInfo, FinalSchema or any of your choice) as shown in figures below.
3. Now promote a common property NIC. (Another PropertySchema will be created automatically).
4. Now create an orchestration and drop shapes on it according to figure below.
5. Create four messages according to below table
Trace out put in Debug view:
Scenario:
I want a patient to have three main information before admit in hospital. (Personal, Insurance, Ward).
1. Create an empty BizTalk project in Visual Studio.
2. Create four chemas named like (PersonalInfo, InsuranceInfo, WardInfo, FinalSchema or any of your choice) as shown in figures below.
3. Now promote a common property NIC. (Another PropertySchema will be created automatically).
4. Now create an orchestration and drop shapes on it according to figure below.
5. Create four messages according to below table
Message
|
Type
|
msgInsurance
|
ParallelConvoyMessagingPattern.InsuranceInfo
|
msgWard
|
ParallelConvoyMessagingPattern.WardInfo
|
msgPersonal
|
ParallelConvoyMessagingPattern.PersonalInfo
|
msgFinal
|
ParallelConvoyMessagingPattern.FinalSchema
|
6. Now create a correlation type and choose NIC (Promoted property) and also create a correlation set corresponding to this correlation type.
7. Make all three receive shapes activate property to true because any one branch could receive message first.
8. Another key thing: Make all receive shapes to initialize correlation. The one which will receive the message first will actually initialize the correlation and the other two will follow that correlation.
9. I have written a simple trace information in Expression shapes to trace that controller enter in branch.
10. Then I constructed the msgFinal in last construct shape. Map inside construct shape is shown below.
11. Then I give strong name to the project and deployed it. and made ports accordingly three for all receive shapes and one for send shape. After configuring it in mmc I got output in OUT folder.Trace out put in Debug view:
Thursday, 25 April 2013
Sequential Convoy Messaging Pattern in BizTalk
In this post I want to show you how to implement sequential convoy
messaging pattern in BizTalk 2010 step wise.
- Create a new blank BizTalk project.
- Add a new item Schema name it CustomerInfo (or any other name you like) and create nodes shown in figure below.
3. Now add another Schema name it PO (shorten for
purchase order) following below image.
4.
Above two schemas will be used for correlation.
Now you need to view the final out put message for that you should have another
schema. I called it FinalSchema. Create its nodes according to screen shot
below.
Roll
up your sleeves the fun starts now. At this point you are able to create the
orchestration. So add a new item (orchestration) to your project and drop
shapes like I have dropped in screenshot.
5. Create four messages according to following table.
Message
|
Type
|
msgCI
|
Schema>>CustomerInfo
|
msgError
|
.NET Type>> String
|
msgFinal
|
Schema>>FinalSchema
|
msgPO
|
Schema>>PO
|
Configuring Shapes:
Assign msgCI to First Receive Shape (Receive_1 according to my screenshot).
- Assign msgPO to Second Receive Shape (Receive_2 according to my screenshot)
- On left branch Assign msgFinal to the ConstructMessage_1 and on transform create map according to below image.
- Assign msgFinal to Send_1 Shape.
- Add Following Script to the Delay Shape. TimeSpan(hour,minute,seconds)
3.
Assign msgError to ConstructMessage_2 shape.
4.
Add following line in MessageAssignment shape.
1.
Assign msgError to Send_2 shape.
Setting up Correlation:
1.
Promote PONo node from CustomerInfo schema and
PO schema.
2. In Orchestration
view>>Types>>Correlation Types, right click and create new
correlation type. Following Dialogue will be opened up. Here you will see the
property you just have promoted. Add it to right panel.
3.
Now create a correlation set by right clicking
on Correlation Set and choose New Correlation Set. In properties set
correlation type to the type which we created in last step.
4.
In Receive_1 properties set Initializing
Correlation Set. From drop down choose Correlation Set just created.
5.
In Receive_2 properties set Following
Correlation Set. From drop down choose the only Correlation Set. (See below
Image)
Important: When receive shape will
receive a message (msgCI), it will initialize a correlation set and keep check
the value of PONo node which was promoted and used in correlation set. When the
second Receive shape will receive message (msgPO). BizTalk will match up its
PONo nodes value with msgCI’s PONo nodes value. If both match up it will continue
if not it will suspend those messages (we can handle them in some different way).
Here I have just left as this is a sample.
Adding Ports:
6.
Add a receive port and attach it to Receive_1
shape.
7. Add Operation to the same receive port and
configure it with PO schema and attach it to Receive_2 shape.
8.
Add two Send ports and attach them to Send_1 and
Send_2 shapes.
Configuration on Administration side:
- Create One Receive port with two Receive Locations ( One will pick up CustomerInformation message and the other will pick up PurchaseOrder message).
- Create two Send ports (One to output Final message and other to output Error message).
- Bind them to the orchestration and start the project.
Drop sample file in Customer Info IN folder and wait for 5 second you will get error message in error folder. If you put Purchase Order message within 5 second in PO IN folder you will get Final message in Output folder.
Subscribe to:
Posts (Atom)