Click here to Skip to main content
Click here to Skip to main content

Simple Biztalk Project

By , 19 Dec 2012
Rate this:
Please Sign up or sign in to vote.

Introduction

This Article is mainly meant for the People, Who Wants to Start their career with Biztalk. This Tutorial makes you to Develop a Simple Biztalk Application.

The Objective is to Make Element/ String Concatenation in Biztalk and Deploying it in the Biztalk Administrator console.

Scenario

Say You have an XML File with First Name and Last Name. Now the Requirement  is to Make Full Name using Biztalk Tool.

Steps

  1. Creating a biztalk Input & Output Schema
  2. Mapping the Record for Concatenation in the Map
  3. Creating Biztalk Orchestration
  4. Configuring Send and Receive Port after Deployment in Biztalk Administrator Consol
  5. Placing a File in the Receive Location and checking the Output

Description

Get Ready...

  1. Start>>Visual Studio 2008 >> Biztalk >> Biztalk Empty Project

    Creating Schemas for Receive Locations

  2. Solution Explorer>>Add new item>>Schema>>schema1(name it as ReceiveSchema)
  3. ReceiveSchema>>RightClick(RC)>>Add New Child Element
  4. Give Name as FirstName
  5. RC on FirstName>>Add New Sibling Element
  6. Give Name as Last Name

    Creating Schemas for Send Locations

  7. Solution Explorer>>Add new item>>Schema>>schema1(name it as SendSchema)
  8. SendSchema >>RightClick(RC)>>Add New Child Element
  9. Give Name as FullName

Creating a Map to link Receive and Send Schemas

  1. Solution Explorer>>Add new item>>Schema>>Map (name it as ConcatenateMap)
  2. You will find an interface with Source Schema and Destination Schema on Left and Right side of a Graph
  3. Click on source schema>>Biztalk Type Picker window will open>>Expand the Tree Structure>>Expand the Schema>>
  4. Select the Receive Schema for the Source
  5. Click on the Destination Schema>>select the SendSchema for the Destination
  6. You will find the Send and Receive schema along with their elements
  7. Now Goto Toolbox>>String Functoid>>String Concatenation>>Drag and drop to Map area
  8. In ReceiveSchema>>click and Drag the FirstName element to Map Area
  9. Again click and drag the LastName element to Map Area(Ensure that both points stick to the string concatenation functoid)
  10. On the other end click and drag the FullName element to the functoid

Creating a Orchestration

  1. Solution Explorer>>Add new item>>Schema>>Map (name it as ConcatenateOrch)
  2. You will find a flow diagram with the text “Drag and Drop from the Toolbox here”
  3. Click and drag the Receive Orchestration from Toolbox to the prescribed area
  4. Followed by Transform Orchestration and Send Orchestration
  5. Drag and Drop Port >>Port ConfigurationWizard will open
  6. Click Next>>Give Name as ReceivePort
  7. We have to configure this port as a Receive Port>>Let everything be default>>Select the Port Direction as

    >”I will always be receiving message on this folder”

  8. Port Binding >> Specify Later
  9. Click Finish
  10. Drag and Drop Another Port>> Click Next>>Give Name as SendPort
  11. Configure Port Direction as ”I will always be Sending message on this folder”
  12. Port binding>> Specify Later

Configuring the Message

  1. Go to the Orchestration Tab near the Solution Explorer
  2. Right click on Message Folder>>New Message
  3. In the Properties Window>>Give Identifier as>>ReceiveMessage
  4. And Message Type>>Click on the Drop down>>Expand Schemas>>Select from Reference
  5. Select Artifact window will open
  6. Click on current project>>select the ReceiveSchema in your right panel of Artifact
  7. Again Message>>New>>Identifier>>SendMessage>>Select schema>>ReceiveSchema
  8. Now you should see the two message(SendMessage and ReceiveMessage) in Message folder in Orchestration

Configuring Orchestration

  1. Double Click on Receive Orchestration, In the Properties window>>Select ReceiveMessage from Drop down
  2. And Select Activate Property as True
  3. Double Click on Send Orchestration, In the Properties window>>Select ReceiveMessage from Drop down
  4. Only one orchestration should have activation = true
  5. Double click on Transform>>Transform Configuration window will open
  6. On your left you will find transform panel>> Click on Source>>Select the Variable Name as ReceiveMessage
  7. Click on Destination>>Select the Variable Name as SendMessage

Joining Ports

  1. Now Join the ReceivePort to the Receive Orchestration and SendPort to the Send Orchestration

Notice that, now all error symbols is gone…!

Building and Deploying the Application

  1. Before building and Deploying, the application has to be signed
  2. Right Click on the Application in solution explorer and select the Properties>>Goto

    Signing>>Check on the Sign the assembly>>give any name as a key>>uncheck the Password option and click ok

  3. And click on Deployment>>Give an Application Name as MyFirstBiztalkApp(which you will see in the Biztalk Administrator after deploying)
  4. Save the whole project(ctrl+shift+S)
  5. Click on the Application in solution explorer and select the build option
  6. If any error is thrown, rectify it.
  7. After Build succeeded(Left Bottom Messgae), click on Deploy option
  8. The Entire application is Deployed after deploy successful message will be dropped

Configuring Application in the Biztalk Administrator Console

  1. Create a folder in your desktop as BzTest>>Create Send Folder and Receive Folder inside it
  2. Goto Start>>All Programs>>Biztalk Administrator Console
  3. Expand the Biztalk server 2009 administrator>>Expand Biztalk Group>> Expand Application
  4. You will find MyFirstBiztalkApp in the Application Tree>>click on that
  5. Right click on the Application>>Configure>>Configure Application Window will open
  6. Click on Biztalk_Orchestration1>>Select host as Biztalk Server Application
  7. And in Bindings>>goto Inbound Logical Ports >>Click below Receive port>>In the Drop Down >> select >>New Receive Port
  8. In Receive Location Tab>>Click New>>Select the type as FILE
  9. Click on Configure and select the Desktop Location of BzTest>>Receive Folder
  10. Select the Receive Pipeline as XMLReceive
  11. goto Outbound Logical Ports >>Click below Send port>>In the Drop Down >> select >>New

    Send Port

  12. In Send Location Tab>>Click New>>Select the type as FILE
  13. Click on Configure and select the Desktop Location of BzTest>>Receive Folder
  14. Select the Send Pipeline as XMLSend
  15. Go to Messaging on your left panel>>click Receive Port and Location>>New>>Oneway Receive Port
  16. Check that the Biztalk_Orchestration1 error symbol has turned to Green…or else Re-do the same

Starting the Application

  1. After all configuration gets over>> Right click on the Application(MyFirstBiztalkApp) and select Start
  2. Your Application is Ready to Test now

Testing the Application

  1. Create an XML Document as per the ReceiveSchema
  2. Or Right click on Receive Schema in VS2008 and Create an Instance of it
  3. Make sure the XML file is prepared as ReceiveSchema Structure(FirstName and LastName as elements)
  4. Copy that XML file and Paste it in the Receive folder which we have created in the Desktop
  5. The Biztalk Application will pick up that XML file>. You can see the file will get disappeared with in a few seconds after you place that
  6. When you open the Send folder you would find a generated XML file with the element FullName(as per our SendSchema)

This is the Simple Application Creation in Biztalk. Have an Happy Start to the Biztalk

Points of Interest

Interest Towards Microsoft Technologies driven me crazy

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

No Biography provided

Comments and Discussions

 
QuestionSimple Biztalk Project PinmemberMember 999496917-Apr-13 4:55 
While creating the schema what has to be done about the root node.
 
Has to be kept as it is??
 
Or have to keep FirstName as root node??
 
Please specify, because while linking the map root node isn't expanding.
GeneralMy vote of 3 PinmemberKay Lerch18-Jan-13 15:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140421.2 | Last Updated 19 Dec 2012
Article Copyright 2012 by VIGNESH SUKUMAR
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid