Blue Theme Orange Theme Green Theme Red Theme
 
Team Foundation Server Hosting
Home | Forums | Videos | Advertise | Certifications | Downloads | Blogs | Interviews | Jobs | Beginners | Training
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
Team Foundation Server Hosting
Search :       Advanced Search »
Home » BizTalk Server » Biztalk Messaging Services

Biztalk Messaging Services

This article is intended to illustrate the concepts of mapping in Biztalk Server 2006.

Author Rank :
Page Views : 4582
Downloads : 0
Rating :
 Rate it
Level : Advanced
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
 
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
 Tag Cloud
assemblies BizTalk BizTalk Server Calling external assemblies Calling external assemblies from maps in BizTalk external assemblies maps in BizTalk .NET CF Development biztalk Biztalk Server 2006 Installation Biztalk Server Messaging Message-Oriented Middleware (MOM) CF Development Consuming Web Services in BizTalk mapping database lookup mapping transformation messaging server microsoft biztalk business process automation orchestration enterprise application integration port messages xml workflow management interoperability Parsing BizTalk messages Parsing BizTalk messages in .NET Components Parsing BizTalk messages through Orchestration Pipeline in BizTalk Server Publish schemas as web services Sending an HTML-Formatted E-Mail Message from BizTalk Serialization/Deserialization Validating Messages using Pipelines in BizTalk Server
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 

Introduction

This article is intended to illustrate the concepts of mapping in Biztalk Server 2006. This mechanism solves the problem of receiving incoming messages with schemas different than the business logic and other systems use, because exchanging data requires all systems have a common structure to represent all the business entities and messages or mechanism in which the data can be mapped. Biztalk Mapper is graphical interface which allows specifying transformations between data with different schemas. Instead storing the mapping logic in the business logic layer of each enterprise system involved in the communication, the mappings are stored in the integration layer which is common to every system.

Getting started with a mapping solution

Let's suppose we have an incoming XML message from a CRM system with information about customer such as name, address, city, state and ZIP code as shown in Figure 1 and we want to forward this message to an ERP system whose format representing customer messages is different (structurally and semantically) than the CRM's XML message schema as shown in Figure 2.



Figure 1.



Figure 2.


In order to create the map to transform the values from source to destination schema, we must follow the steps:

  • Click on Project|Add New Item from the main menu. In the Add New Item window, click on Map Files on the left pane and Map on the right pane. Enter a descriptive name for the map as shown in Figure 3.



Figure 3.

  • A blank map is added to the project. Left and right panes are for the source and destination schemas. The center pane is the map surface defined as an area where you can manipulate how mappings are made by using Biztalk functoids. Click the Open Source Schema link in the left pane and expand the Schemas nodes in the Biztalk Type Picker pop-up window until you find the CRM_Customer schema. Do the same with the Open Destination Schema link in the right pane and find the ERP_Customer schema. The figure 4 shows the intended goal of this step.



Figure 4.

  • Now let's begin to create the mapping. Click on the Id attribute in the left pane and drag-and-drop it in the CustomerId element in the left pane.
  • Now let's do some concatenation. Drag and drop a String Concatenate functoid onto the map surface. Click and drag and drop from the FirstName and FamilyName element in the left pane onto the String Concatenate functoid. In order to add spaces between each element value, then double-click the String Concatenate functoid and insert a new parameter as a blank space as shown in Figure 5. Next click and drag and drop from the String Concatenate onto the Fullname element in the right pane.



Figure 5.

  • Do the step 4 with the elements Address, City, State and ZIP in the source schema onto the Address element in the destination schema. The final map is shown in Figure 6.



Figure 6.

  • In order to test the map, go to the Solution Explorer window and right-click on the Customer_CRM_ERP_Map.btm file and select Properties. Set the values of TestMap Input Instance and TestMap Output Instance as shown in Figure 7.



Figure 7.

  • Finally, go to the Solution Explorer window and right-click on the Customer_CRM_ERP_Map.btm file and select Test Map option.

Conclusion

In this article I explained the concepts of Biztalk maps through an application solving an data layer integration problem which is very common in one business scenario.

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article
 [Top] Rate this article
 
 About the author
 
John Charles Olamendy
He’s a senior Integration Solutions Architect and Consultant. His primary area of involvement is in Object-Oriented Analysis and Design, Database design , Enterprise Application Integration, Unified Modeling Language, Design Patterns and Software Development Process. He has knowledge and extensive experience in the development of Enterprise Applications using Microsoft.NET and J2EE technologies and standards. He is proficient with distributed systems programming; and business-process integration and messaging using the principles of the Services Oriented Architecture (SOA) and related technologies such as Microsoft BizTalk Server, Web Services (Windows Communication Foundation, WSE, BEA WebLogic, Oracle AS and Axis) through multiple implementations of loosely-coupled system. He’s a prolific blogger contributing to .NET and J2EE communities and actively writes articles on subjects relating to integration of applications, business intelligence, and enterprise applications development. He holds a Master’s degree in Business Informatics at Otto Von Guericke University, Magdeburg, Germany. He was recently awarded as MVP. He currently works in the telecommunication industry and delivers integration solutions for this industry. He harbors a true passion for the technology.
Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Discover the Top 5 .NET Memory Management Fundamentals
To write the best .NET code, you need to know exactly how the .NET framework really manages memory. Ricky Leeks presents the Top 5 fundamental facts of .NET memory management. Learn more.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
 
 Post a Feedback, Comment, or Question about this article
Subject:
Comment:
DevExpress Free UI Controls
Become a Sponsor
 Comments
Discover the top 5 tips for understanding .NET Interop
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.