Cloud Meta Man is our tool that will generate all required code for you that you can easily provide the business data stored away on premise databases usually running behind multiple firewalls or NAT devices. You will be able to use generated WCF service, host it on Windows Azure and easily integrate it with the Business Connectivity Services running in the cloud or on-premise. You will be able to use generated ASP.NET MVC 3 Web Role, host it on Windows Azure and easily display the data returned across the Service Bus on the web page. In this walkthrough using Cloud Meta Man we will create Listener and Caller console applications, ASP.NET MVC 3 Web Role and WCF layer with CRUD operations for on-premise MS SQL database, host the roles on Windows Azure and make the data available on SharePoint page.
- Prerequisites
- Cloud Meta Man version 1.0.0.4 or hire
- Microsoft SharePoint Server 2010
- Microsoft Visual Studio 2010 Professional or higher
- Windows Azure SDK for .NET installed
- A subscription on Windows Azure
- We need to create a service bus within Azure.









- Right click on the “BCS Listener” project and choose Debug -> Start New Instance
- Wait for the successfully established connection
- Now right click on the “BCS Caller” project and also choose Debug -> Start New Instance
- Wait for the successfully established connection
- In the Caller console window you should press Enter in order to see a list of departments from your database table! This means the Caller program is calling the GetAll_Department_ReadList method over the Service Bus, and the Listener is executing this method and returning the data back across the Service Bus
- The “BCS Caller” application has served it’s purpose. We can now move forward knowing the service bus is working. By pressing Enter we can close only Caller console window.
- Now let’s test our Azure application locally on the emulator. Right click on the “BCS Azure” project and choose Debug -> Start New Instance. Two browser instances will be launched.
- First one (BCS Web Role) shows the data is coming through the Service Bus
- Second one (BCS WCF Role) shows an error message “403 – Forbidden: Access is denied”. That is correct
- If you add to the URL “BCSService.svc” you will be able to see that WCF service was hosted correctly
- Run “BCS Listener” service at the other end of our service bus. Right click the “BCS Listener” project and choose Debug -> Start new instance. Wait for the successfully established connection.
- Run the browser on your PC or smartphone and enter the url you gave your application in Azure. Hopefully you will see something similar to below.
We hope this walkthrough will be useful for you. If you have any questions feel free to email them to support@lightningtools.com
<Dmitry Kaloshin/>