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

Receiving XML and JSON messages via the Post method


Now that we have successfully published a RESTful service that handles the GET verb, let's discuss the options to accept messages using the HTTP POST verb and how to receive the message body content in XML and JSON formats.

In order to receive an XML message, a schema that matches the posted message body and setting the receive pipeline to XMLReceive is required. In this scenario, the WCF-WebHttp adapter behaves very similar to a WCF-BasicHttp adapter.

However, if you are required to receive JSON formatted messages, you need to convert them to XML first before publishing them to the message box. Before you can do this, you must also have an XML schema representation of the JSON message. There are tools on the Internet that will take a JSON message online and convert it to an equivalent XML format.

There are a couple of options that can be used to covert JSON to XML.

Note

Note that BizTalk Server 2013R2 now includes a JSON Decoder Pipeline Component...

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