Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Getting Started with BizTalk Services
Getting Started with BizTalk Services

Getting Started with BizTalk Services: BizTalk Services offers great possibilities for bringing enterprises together in the cloud, and this book is the perfect introduction to it all. Packed with real-world scenarios, you will soon be designing your own tailor-made integration solutions.

eBook
€17.98 €19.99
Paperback
€24.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Getting Started with BizTalk Services

Chapter 2. Messages and Transforms

In Chapter 1, Hello BizTalk Services, we discussed the basics of BizTalk Services and the central concept of a bridge providing the vehicle for receiving and sending data via endpoint adapters (sources and destinations) through its built-in pipeline. In this chapter, we'll discuss messaging aspects, focusing on one particular aspect of messaging: transformation, or mapping. One of the most common aspects of integration is the need to turn one message format into another; what we referred to as structural impedance in Chapter 1, Hello BizTalk Services. It's the bread and butter of any integrator's toolbox, and BizTalk Services provides a brand new, modern mapping engine with graphical tooling to build sophisticated and powerful transforms. In this chapter, we'll look at BizTalk Service's mapping and transformation capabilities in detail and the flexibility it provides. To summarize, this chapter will cover the following:

  • Why transformation and mapping is...

The problem


BizTalk Services' job is to let you connect this to that. What this and that actually are may not always be clear, well defined, or standardized into some internationally recognized protocol. A mapping capability is therefore crucial—a way to convert this into that. On many occasions, mapping requirements may be complex; the need to fundamentally change the shape or structure of a message, for example, or the need to replace data values from the source message with something that makes sense to the receiver. We can break this down into two classes of problems: one that needs to address the structure of a message, transformation; and one that needs to address its content, transcoding or translating it. The two types of mapping, transformation and translation, are both possible with BizTalk Services, as we'll see in this chapter.

The mapper


So far, we're being deliberately vague, and with good reason. Often, mapping requirements are not well known and change as more is discovered about the nuances of the messaging formats involved and their variations. It often surprises people familiar with dealing with XML-based messages that describing their validity simply in terms of schema by using XML Schema Definition (http://www.w3.org/XML/Schema) can turn out to be more complicated than it first appears. This is unfortunately sometimes to do with the different productions or instances of XML messages that can be created or produced by a single schema, often unintentionally. XSD is sometimes not precise enough, and integration is therefore often messy, requiring good tools to make things fit, while the purity of standards and specifications doesn't go far enough to avoid ambiguity in implementation. This is a theme we'll come back to many times during this book: to be successful, any integration technology must be flexible...

The map designer


Take a look at the following screenshot. This shows the new graphical mapping designer that is accessible from Visual Studio 2012. For those familiar with BizTalk Server, don't be fooled. While it may have a similar look and feel to the BizTalk Server mapper, this tool has significant differences; the overriding design aesthetic was to make common mapping tasks as simple as possible, and as such, the mapper has undergone a significant overhaul.

Graphical mapping designer

Schema


However, we're getting ahead of ourselves. In order to map one message format or structure to another, to translate its contents for example, we first need to understand the messages themselves. Fundamental to this is schema.

BizTalk Services differentiates between two types of messages: XML and non-XML. All XML message formats are expressed using XSD, and all non-XML message formats are expressed using XSD. So, XSD is important! The purpose of this book is not to provide a primer in XSD; we'll refer to other references if you need some background on the technologies we mention. Instead, we'll provide just enough to show how BizTalk Services uses such technologies so that the less familiar can still understand what is going on.

Now, you're probably wondering how any message formats you can think up can be defined in XSD. Let's look at an example.

An example


Let's expand on the example we looked at in Chapter 1, Hello BizTalk Services. If you recall, this example received a file via SFTP and routed it to a Service Bus endpoint. Now we'll add a map to the solution. The map will transform the incoming message into a different format expected by the recipient. However, as noted previously, if we're to turn one message format into another, we need to define the schema of the target message first in order for us to be able to map to it.

To do this, right-click on the project, navigate to Add | New Item, select Schema from the list of items, and provide the name OrderUS.xsd. Click on Add to create the schema and add it to the solution.

The schema designer will now be open. As you did in Chapter 1, Hello BizTalk Services, add nodes to the schema to build it up, as shown in the following screenshot:

Changing the Order schema

Now, right-click on the project and navigate to Add | New Item. Select Map from the list of items and provide the name...

Mapping operations


We can proceed like this for as many nodes as we like, connecting them individually or in groups. However, we often need to do more than just map one node's value to another. For this, we can turn to mapping operations. For those acquainted with BizTalk Server, you will be familiar with functoids; the concept is similar in BizTalk Services. However, despite the similarities, there are many differences in how they are realized. One of the primary goals of the product group is to simplify common tasks, such as looping, which were often difficult or time consuming to achieve previously. This is where we will now focus our attention.

BizTalk Services provides a total of 37 mapping operations that are functionally grouped into categories in the toolbox. There isn't room here to cover every mapping operation, so we'll focus on some of the most useful. For a complete reference, check the MSDN documentation at http://msdn.microsoft.com/en-us/library/windowsazure/hh689870.aspx....

Testing


Phew! This may seem quite complex, but it's really quite simple once you break it down. The next step is to test the map and see if it looks like it's producing the right results. Testing is built right into Visual Studio, so there's no need to compile and deploy the solution to Windows Azure in order to see if it works. This is important as creating anything other than trivial maps is a very iterative process. It's made easier by building up the functionality in the map gradually and examining the test results along the way. This way, any mistakes are much more obvious and easily corrected.

To test a map, we need some input. This is most easily generated in Visual Studio itself. Right-click on the OrderFF.xsd schema in the Solution Explorer window and select Generate Instance. Open the file that's created and edit the values to match the one shown in the following code (don't forget, you can just download the source for this example from the website):

<ns0:Order xmlns:ns0="http...

Configuring a bridge


A map is no good on its own though. We need to be able to use it in an integration solution. It should hopefully come as no surprise that the way we do this is by configuring a bridge. The next screenshot shows part of the bridge configuration. This configuration represents the pipeline of processing that can be configured. There are multiple stages to this pipeline, as mentioned in Chapter 1, Hello BizTalk Services. In the middle of the pipeline, there is a Transform stage; it is here that we can specify a map to execute.

Configuring a bridge with a map

Double-click on the MessageFlowItinerary.bcs file in the Solution Explorer window to open it. In the designer, open the OrderProcessing bridge configuration by double-clicking on it. Click on the Transform stage and look at the Properties window. Here, we can choose a map by clicking on the ellipsis () next to the Maps property to open up the configured maps. This will show us all the maps the solution contains.

We can...

Putting it all together


The solution is now ready. Build and deploy as before, and once deployed, point your browser to https://<yourdeployment>/default/OrderProcessingBridge and you should see a 401 HTTP error code stating that a manage claim is required for this operation.

Now you will use two tools provided as a part of the BizTalk Services SDK. These are MessageSender and MessagerReceiver which you can download from the following links. These tools allow you to send messages to and receive messages from the bridge you created:

Unzip both solutions and open the MessageReceiver sample in Visual Studio 2012 and build it. Run it from the command prompt by typing the following and pressing the Enter key.

<path>MessageReceiver.exe ServiceBusNS owner <issuerkey> USAddressRelay OneWayRelay

In the preceding command, <path...

More on mapping


We've covered a lot of ground so far, but there is much more to mapping in BizTalk Services besides the other 27 operations we've not used here. There are two other groups of operations that deserve some discussion.

The first of these is the Get Context Property mapping operation. This provides an often-asked-for feature in BizTalk Server—the ability to retrieve properties from the message context and include them in a map. The way this works is by configuring it, specifying the property name to retrieve it, and then connecting it to a target node; no input nodes are required. We haven't covered context properties in detail yet, but for now, remember that they are a set of name/value pairs that hold contextual information about the current message flow; for example, the transport details (for example, a filename) of the message received, or even properties of the message itself that have been extracted. If you're wondering how you can test this from within Visual Studio as...

Dealing with failure


One very important point a developer must consider is how to deal with failures that occur. In integration solutions, failure is particularly important as it can be hard to isolate and diagnose. On a map, it is possible to configure what action to take should a particular operation fail, usually due to bad data provided to it. The Settings button at the top of the designer displays the dialog, as shown in the following screenshot, when clicked.

Here, each operation (or group of operations in some cases) can be set to either Fail Map on an error occurrence or continue and output a null value. This is very useful; we'll look at error handling in much more detail in a later chapter.

Setting runtime properties

Summary


In this chapter, we have looked at the mapping features of BizTalk Services. You've seen how to create maps, use many of the powerful operations provided, and test them. While we haven't been able to cover every operation, many are self-explanatory and easy to understand; after all, the whole point of the mapper is to make the job of format and content conversion easier. We urge you to experiment on your own and see what you can come up with.

In the next chapter, we'll look at the different types of bridges BizTalk Services provides, starting with EDI.

Left arrow icon Right arrow icon

What you will learn

  • Use the EAI and B2B features of BizTalk Services
  • Connect with LineOfBusiness systems in your datacenter onpremises
  • Create bridges and configure them to process and route messages
  • Design transforms and employ custom code
  • Address and diagnose problems
  • Migrate from BizTalk Server to BizTalk Services

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 26, 2014
Length: 180 pages
Edition :
Language : English
ISBN-13 : 9781782177418
Concepts :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Mar 26, 2014
Length: 180 pages
Edition :
Language : English
ISBN-13 : 9781782177418
Concepts :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 99.97
Getting Started with BizTalk Services
€24.99
(MCTS) Microsoft BizTalk Server (70-595) Certification and Assessment Guide: Second Edition
€53.99
Microsoft BizTalk ESB Toolkit 2.1
€20.99
Total 99.97 Stars icon

Table of Contents

8 Chapters
Hello BizTalk Services Chevron down icon Chevron up icon
Messages and Transforms Chevron down icon Chevron up icon
Bridges Chevron down icon Chevron up icon
Enterprise Application Integration Chevron down icon Chevron up icon
Business-to-business Integration Chevron down icon Chevron up icon
API Chevron down icon Chevron up icon
Tracking and Troubleshooting Chevron down icon Chevron up icon
Moving to BizTalk Services Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3
(12 Ratings)
5 star 66.7%
4 star 16.7%
3 star 8.3%
2 star 0%
1 star 8.3%
Filter icon Filter
Top Reviews

Filter reviews by




J.P.M. Smit Jun 24, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The title of the book is getting started and that is what the book is about: getting a kick start to BizTalk Services. But it is more than just an overview. It touches all aspects of BizTalk Services and dives deeper in some chapters. So after reading this book you're not only familiar with BizTalk Services, but because of the step by step examples you're also capable of building your first BizTalk Services integration.The book is clearly written, touches the surface where applicable and dives deeper when necessary. And example is the B2B integration with EDI. This is a common scenario which can be implemented using BizTalk Services. The book dedicates an entire chapter to this.Recommended read.
Amazon Verified review Amazon
Steef-Jan Apr 09, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Windows Azure BizTalk Services is a new service on the Windows Azure Platform. Released November 2013 and maturing fast through a three month release cadence to enhance and enrich its integration and B2B capabilities. Since the IT landscape is changing so rapidly over the last couple of years the integration needs have become more apparent. Connecting SaaS with on-premise is a common practice now and therefore having a more lightweight integration technology in the cloud makes sense. In case you are unfamiliar with this new paradigm, then this book will reveal this for you. It covers the Microsoft technology as is today and shows how to use the integration service to create solutions that run in a BizTalk Service. The book starts with what the service is and what the purpose of it is before it discusses the actual technology itself, explaining the concepts of bridges, EAI, B2B, messages, transforms, API, tracking, troubleshooting and migrating from BizTalk to its service counterpart. The latter is an interesting aspect as BizTalk and the BizTalk Service are not alike. Windows Azure BizTalk Service can be viewed as an integration Platform as a Service (iPaaS) or Cloud-based integration. This as a Service is fairly new and not a surprise with the increasing demand for integration. Cloud-based integration/iPaaS is characterized with a license model (pay as you go), deploy in the cloud, connectors, no code, and management/monitoring. And these characteristics will become visible with regards to the BizTalk Service if you read the book from cover to cover. It is an interesting technology and hopefully soon to be a key player in the iPaaS space with the current leaders like MuleSoft, Dell Boomi and others.
Amazon Verified review Amazon
Kevin Smith Apr 01, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
“Getting Started with BizTalk Services” gives a unique perspective and understanding around BizTalk Services not only around the product but also how to leverage it in order to successfully deliver real world enterprise systems. The authors draw on their deep technical insights into BizTalk Services gained from building the product itself and from designing and implementing real world integration solutions using BizTalk Services.BizTalk Services represents the next evolution of the BizTalk Server platform, it’s a major shift from the previous on-premise architecture of BizTalk Server taking the platform to both cloud and hybrid models, as such there are some significant new concepts that engineers need to understand in order to be successful with the new platform. The authors do a great job of articulating this to the reader, the writing style makes the book approachable to both people new to the platform as well as seasoned BizTalk veterans wishing to up skill to the new platform. Jon and Karthik do a great job of guiding the reader through this exciting new technology. I was asked to review the book and found it an extremely useful resource in learning about BizTalk Services.
Amazon Verified review Amazon
Peter Chang Jun 23, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I'm so glad there is finally a book regarding WABS (Windows Azure BizTalk Services). Reading this book was so much easier and better way for me to get started on WABS. When it comes to learning a new technology, I often like to start with a sample/example, and this book starts with HelloWorld example. Then, it goes deep drive to each component and its concept. Since I've already worked with BizTalk Server, it was fairly quick for me to read the entire book, but this book was written in a way that even non-BizTalk people can easily understand. I would definitely recommend this book to others.
Amazon Verified review Amazon
Dipti Porwal Jun 20, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
There are certain things one looks for while picking up a technical book. Firstly -content, second -approach and third- examples. "Getting started with BizTalk Services" book fares excellent in all the three criteria. It is a right fit to start with Integration on cloud using Microsoft technologies independent of one’s experience in Micrsoft BizTalk Server. An extremely comprehensive and pragmatic book that contains everything right from the Concepts, deployment basics, implementation, troubleshooting, WABS API to real world scenarios for both EAI and B2B. It even covers migrating to BizTalk Services from BizTalk Server. Tracking messages is an integral part of the messaging world and the same has been diligently explained in the chapter - "Tracking and Troubleshooting". I felt the authors have made themselves really accountable by writing this chapter as they have ensured that even the readers new to EAI can get pointers on troubleshooting the implemented scenarios and just not left them clueless in the maze of messaging components.Cloud is the order of the day and is gradually becoming integral part of today’s Enterprise. Even in the EAI space, it has become a mandate to understand and implement the integration scenarios on cloud. I would say, this is "The" book for getting started with BizTalk Services.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.