Here are steps we need to perform in order to host WCF service in Windows Azure platform.
1) Create a new Azure web cloud solution project.
2) Add WCF service Template to the project.
3) Define the Service Contract with one or more Operation contract.
4) Create the Client application which consumes the WCF service which is hosted on Azure platform. In this step we are not going to generate Metadata from WCF service instead I am going to show you the magic how we can Invoke WCF service with out adding service meta data reference .
Step1 : Create Web Cloud Service project .
Now right click on SreeniWCFCloudService_WebRole project and add WCF Service template .
Define the Service Contract and add few Operation Contract as shown
Implement the above service contract as shown
Once you see this above screen you have Successfully hosted the service.
Now let's create the WCF client which consumes the WCF Service hosted in Windows Azure.
here WCF hosted in Development Fabric .
Create the Console Application copy the WCF Service Contract class file to create a proxy .
Here we can see the log information which is logged in Azure Service when we call WCF Operation from client .
First Two Operations are (Add, SayHi) are success. but Div Operation Failed with Divide by Zero Exception .