Have WSDL, Need Server

Today I had the need to create a proxy Web Service in place of one that was being developed. I had the WSDL file of the soon to be developed service, but wanted to stand up a service that would help me debug the client I was developing. Turns out it is as simple as running a command line command:

wsdl.exe /server

I’m running Visual Studio 2008 so the wsdl path was (which I had previously added to my path):

C:Program FilesMicrosoft Visual Studio 8SDKv2.0Bin

After running the tool, I had a ready-made .cs file with the correct interface, which I then easily used to stub out some mock data for my client code.

C# Windows Service Method to Determine if a Service is Installed, and Running

Needed to check some servers to make sure a Windows service was available, so wrote this code to keep an eye on them today:
public static bool IsServiceInstalled(string serviceName)
// get list of Windows services
ServiceController[] services = ServiceController.GetServices();

// try to find service name
foreach (ServiceController service in services)
if (service.ServiceName == serviceName)
return true;
return false;

public bool IsWindowsWindowsServiceRunning(string windowsServiceName, string windowsServiceHost ) ServiceController sc = new ServiceController(windowsServiceName, windowsServiceHost);


return (sc.Status == ServiceControllerStatus.Running);


The Funny Thing About Mobile Ads, And Our Future

Just a few short years ago, mobile ads were considered the scourge of mobile apps. Reviews of any app that would try their luck with this monetization method often found that they were “1 starred to death”. Has this changed recently? In the Android space it appears that the numbers have grown to the point that large developers are using the Ad model as their only means for income.

Tonight I tried moving one of my Apps to the AdMob model, and within hours calculated that if the trend continued at it’s pace (and really it should have something better than a linear increase over time as users install the app and come back to it now and then) the app would do better than the last 12 months.

Just over 2 years ago I felt compelled to move to the Android platform, as I knew that our computers would move to handheld size sooner, rather than later. We are about to enter a time where the little device we carry is really not just the communicator, but our complete digital experience. The device we carry will be the way we access many of the things that make us who we are: our past, our medical records, our family, our money, our shared thoughts.

So the funny thing about mobile ads is this:  We accept their place in all of this. People understand that this is the way it works, ads live with our lives.  In this new digital age we bring with us the past, a past drenched with Folgers commercials and diaper ads. The funny thing about mobile is given free, we will take it – gladly giving our thoughts paid in clicks as payment.

ToMarket Grocery Shopping List

OK, lets get this one out of the way early. I have a little shopping app on the Google Android platform. The idea started some time before the initial Android release and it’s first phone, the G1, when my wife was complaining about her Palm device being a dog. I told her about the impending Google mobile OS, and she said I should write a replacement for an App she liked, called HandyShopper. Without looking at the app, I interviewed her and wrote a set of requirements out and got to work. I had a free app in the market shortly after launch, and a paid one on the day they allowed paid apps. A couple of years have passed, and there is still a strong user base that enjoys the app and participates in the community over on http://ToMarketWeb.com. OK, enough of the self plugging, but if you find yourself with an Android device, check out ToMarket.