Book Image

SOA Patterns with BizTalk Server 2013 and Microsoft Azure

By : Richard Seroter, Mark T Brimble, Coen J Dijkgraaf, Mahindra Morar, Mark Brimble, Colin Dijkgraaf, Johann Cooper
Book Image

SOA Patterns with BizTalk Server 2013 and Microsoft Azure

By: Richard Seroter, Mark T Brimble, Coen J Dijkgraaf, Mahindra Morar, Mark Brimble, Colin Dijkgraaf, Johann Cooper

Overview of this book

Table of Contents (21 chapters)
SOA Patterns with BizTalk Server 2013 and Microsoft Azure Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Exposing a RESTful web service using BizTalk


Here, we will publish a request/response RESTful service that will simulate a simple sales query by a service consumer using Content based routing (CBR) based on the BTS.Operation name. A direct bound orchestration will subscribe to this message and return a response message containing the received account and order numbers. We will use two variable mappings on the receive location for the account and order number.

The URL will have two variables representing the account and order numbers, which represent the request resource location. The response message will simply return the account and order numbers found in the resource location and a unique identifier as an XML formatted message.

For this example, the receive pipeline will be set to PassThruReceive and an orchestration will be direct bound to subscribe to the BTS.Operation type. Later on in this chapter, we will use a custom pipeline to publish a typed message to the message box.

The request...