Using Windows Azure AppFabric Service Bus with EPiServer CMS, part 3

This blog post is about registering and calling on-premise services using Windows Azure AppFabric Service Bus from EPiServer CMS. In this series we activate the Service Bus feature of AppFabric, create a WCF REST service, register it on the Service Bus and finally call it from EPiServer CMS.

Introduction

This is the third and final part of the series Using Windows Azure AppFabric Service Bus with EPiServer CMS. Please read part one and part two if you haven’t done so already. In this part we’ll create a very simple plugin to EPiServer CMS which calls the on-premise service using the AppFabric Service Bus.

Creating the plugin

In this exercise I use the AlloyTech sample site from EPiServer. Let’s create a web form page which we’ll use an EPiServer CMS plugin in admin mode. Dan Matthews has a great blog post on a few tips for creating EPiServer CMS plugins.

See sample markup below for our “BizTalk Explorer Services“-plugin.

Let’s dive into the code-behind and implement the logic for calling our service.

In the real-world we’d have a more clever way of calling the service, as well as returning the data in JSON-format, but for the sake of this exercise we’ll keep it simple.

Testing the plugin

As a final step we test the plugin by logging on to EPiServer CMS and going into admin mode. You’ll find the plugin under Admin, Tools and BizTalk Explorer Services.

image

That’s it! We can now call our on-premise service from EPiServer CMS using the AppFabric Service Bus.

Thanks for reading!

daniel
daniel
Developer
Recent Posts
Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt

Start typing and press Enter to search