Using Variable Mapping in a WCF-WebHttp Send Port without promoted properties
Introduction
When you call a REST Service in BizTalk Server 2013, there could be scenarios when an ID, or any other query variable, must be determined at run time. To enable such scenarios, you specify variables for the HTTP Method URL Mapping. The variable maps normally to a promoted field in a message, but there are some scenarios where you cannot use promoted properties.
For example, if you have to POST a message to a REST service and also have to dynamically set the URI at run time, but the dynamic variable is not in the message that you are going to send to the REST Service.
Figure 1. Calling REST Service with SoapUI
In this video I'm going to show you how you can use a Message Context Property instead of a Message Data property to provide the variable for the HTTP Method URL Mapping.
Video
Code Samples
You can download the BizTalk application with the source code from the MSDN Code Gallery:
Other languages
This article is also available in the following languages:
See Also
Another important place to find an extensive amount of BizTalk related articles is the TechNet Wiki itself. The best entry point is BizTalk Server Resources on the TechNet Wiki.