Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
SOA Patterns with BizTalk 2013, Second Edition

You're reading from   SOA Patterns with BizTalk 2013, Second Edition Learn how to create and implement SOA strategies on the Microsoft technology stack using BizTalk Server 2013 and Azure Integration platforms

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781784396466
Length 508 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (16) Chapters Close

Preface 1. Building BizTalk Server 2013 Applications 2. Windows Communication Foundation Primer FREE CHAPTER 3. Using WCF Services in BizTalk Server 2013 4. REST and JSON Support in BizTalk Server 2013 5. Azure BizTalk Services 6. Azure Service Bus 7. Planning Service-oriented BizTalk Solutions 8. Schema and Endpoint Patterns 9. Asynchronous Communication Patterns 10. Orchestration Patterns 11. Versioning Patterns 12. Frameworks and Tools 13. New SOA Capabilities in BizTalk Server 2013 – Azure Hybrid Patterns 14. What's New and What's Next? Index

Pipeline to publish a typed message


In some circumstances, it may be necessary to publish a typed message to the message box when receiving a message using the HTTP GET or DELETE verbs. As you know, there is no message body to publish, therefore we need to create one in the receive pipeline. More information about how to develop custom pipelines can be found at https://msdn.microsoft.com/en-us/library/aa548050.aspx.

In the disassemble stage of the receive pipeline, we inspect the value of the InboundHttpMethod property; if it is a GET method, we call the helper method ResourceLocationBasedMsg to instantiate a message and populate the promoted elements:

public void Disassemble(IPipelineContext pContext, IBaseMessage pInMsg) 
{ 
IBaseMessageContext context = pInMsg.Context; 
//Get the http verb from the context properties 
var httpVerb = context.Read("InboundHttpMethod", "http://schemas.microsoft.com/BizTalk/2006/01/Adapters/WCF-properties"); 
//Check if the method is a GET 
if(httpVerb.Equals...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image