O'Reilly logo

SOA Patterns with BizTalk Server 2013 and Microsoft Azure - Second Edition by Mahindra Morar, Colin Dijkgraaf, Johann Cooper, Mark Brimble, Richard Seroter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required