Accessing Azure Development Fabric Hosted WCF endpoint from remote clients

So lets say you want to test early development builds in a continuously integrated system.
You want to take all your developers code and execute it on a seperate box and be able to test client access to your system remotely.

Yeah you could put it up in staging on Azure but maybe you dont want to do that yet. Maybe you just want some testers bangin away at it from some remote client.

Well right now thats kinda hard since the development fabric carries a restriction to deny request from non-localhost ips. It only accepts loopback.
Sounds like a job for the .NET 4.0 Router.

Basically the thought is that you need something local that can recast your test request originating outside of your machine to
requests that "originate from your machine" to 127.0.0.1


The way to do this is simple. On the machine hosting windows Azure Development Fabric and your visual studio install
Install the WindowsAzurePlatform training kit. One of the labs will guide you on how to expose WCF Services from the development fabric.
Once you are done with that create a client to your service... The Azure Dev fabric will make you point your WCF clients to the loopback address 127.0.0.1.
This is where the router comes in.
You need to install .NET 4.0. You might also want to install Visual Studio 2010 Beta 1.
Then you want to get the .NET 40 WCF Samples.
Inside the .NET 4.0 samples theres the famous calculator service but this time with a router in front of it.
You want to change the config file to mimic what i have below.
You want to host the router locally so it can talk to 127.0.0.1 and can also expose an endpoint on 192.168.1.X or something.
Finally you want to take the Calculator client and run it outside of the VM on your host machine or even on another machine altogether.

p.s.
Dont worry Visual Studio 2010 Beta 1 and Visual Studio 2008 sp1 can run side-by-side.. its actually "encouraged".
also remember to enable the ports or just disable the firewall temporarily

Windows Azure Platform Training Kit - August Update
http://www.microsoft.com/DownLoads/details.aspx?familyid=413E88F8-5966-4A83-B309-53B7B77EDF78&displaylang=en

Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) Samples for .NET Framework 4.0 Beta 1
http://www.microsoft.com/downloads/details.aspx?FamilyID=5aca0622-d87d-4cc9-a22c-0d58205a56b4&displaylang=en

Microsoft .NET Framework 4 Beta 1
http://www.microsoft.com/downloads/details.aspx?FamilyID=ee2118cc-51cd-46ad-ab17-af6fff7538c9&displaylang=en

Visual Studio 2010 Professional Beta 1 – Web Installer
http://www.microsoft.com/downloads/details.aspx?familyid=75CBCBCD-B0E8-40EA-ADAE-85714E8984E3&displaylang=en

Visual Studio 2010 and .NET Framework 4 Training Kit - May Preview
http://www.microsoft.com/downloads/details.aspx?familyid=752CB725-969B-4732-A383-ED5740F02E93&displaylang=en


Config Files....

Since the blog feature here
"limit your blog post to 100000 characters"
Ill put the config files in a seperate post

ON ANOTHER BLOG SITE ( :( )
heres the link to my other blog.

http://geekswithblogs.net/cloud9/archive/2009/08/31/accessing-azure-development-fabric-hosted-wcf-endpoint-from-remote-clients.aspx

Views: 85

Comment

You need to be a member of Azure User Groups to add comments!

Join Azure User Groups

Comment by ElenaGR on March 2, 2010 at 9:23pm
For all the readers of the blog I'd like to suggest reading one more interesting article on Azure development http://techzone.enterra-inc.com/azure/how-we-developed-web-applicat...

Latest Activity

chandupatla joined Mike Holdorf's group
Thumbnail

Dallas Azure User Group

Dallas Azure User Group - Meetings held at the Microsoft Technology Center in Las Colinas
Apr 20
Anthony.Tex.M posted a status
"We are ACTIVE on http://www.hccug.org ... and open for new members!"
Feb 21
Ani Arth posted an event
Thumbnail

Live! 360 Orlando at Loew's Royal Pacific Resort

November 17, 2014 to November 21, 2014
Live! 360 brings together five conferences, and the brightest minds in IT and Dev, to explore leading edge technologies and conquer current ones. These co-located events will incorporate knowledge transfer and networking, along with out-of-this-world education and training, as you create your own custom conference, mixing and matching sessions and workshops to best suit your needs. Whether you are a developer who uses Visual Studio, SQL Server, and SharePoint;…See More
Jun 6, 2014
Ani Arth posted an event

Visual Studio Live! DC at Washington Marriott at Metro Center

October 6, 2014 to October 9, 2014
To Boldly Code where No Visual Studio Live! has ever Coded Before!That's right. We are transporting Visual Studio Live! to our nation's capital for the first time in 21 years. From Oct 6 – 9, 2014, developer, software architect, engineer and designer pioneers will gather in our country's headquarters for 4 days of cutting-edge education on the Microsoft Platform. Join us on this special journey to explore topics covering all-things WCF, ALM, Web Development, Data Management, Visual Studio and…See More
Mar 31, 2014

© 2017   Created by Azure Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service