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...