Posts

Showing posts from January, 2015

BizTalk Server 2013 R2 Integration with Cloud API Last.fm

Image
In previous post I described a way to consume a public Rest API using the BizTalk WCF-WebHttp adapter in combination with JSON-decoder, which is a new component with the BizTalk Server 2013 R2 edition. Now I like to mix things up a bit and consume a different API that is public. That is you can use this API from Last.fm . This is an online music discovery service that gives you personalised recommendations based on the music you listen to. To use the API of this service you need to registering yourself first. Because when you call of one of the methods of the API you need to stick in an api_key as one of the parameters of your request. This is not uncommon as various cloud API’s have this kind of mechanism. Scenario I have the following scenario, where I have built a client application ( still one of those old fashioned guys that use window forms ). The client application have the following functionality: Get information of an artist. Get the top albums from the artist. Infor

BizTalk Server 2013 R2 Consuming JSON Messages

Image
BizTalk Server 2013 introduced a couple of new adapters. One of them was the WCF-WebHttp adapter that offers REST Support. The WCF-WebHttp adapter gives you the ability to send messages to Restful services and receive messages through an exposed endpoint. One of the limitations with the adapter (binding) was the lack of Json support. You had to write your own custom pipeline components to serialize the Json format to XML (you can read about it in this blogpost: BizTalk Server support for restful services ). In the new BizTalk Server 2013 R2 there is out-of the box support for sending and receiving JSON messages with the following features: a wizard to generate XSD schema from a JSON instance, and an Encoder and Decoder component to use with custom pipelines. You do not have to write your own custom components anymore. By creating a custom pipeline and dragging either a JsonEncoder or JsonDecoder you can serialize Json into xml or vice versa. With an instance of a Json message y

Freedom of expression!

Image