Customizing Visual Studio generated service reference namespaces

by Marcel Veldhuizen 30. May 2010 18:40

When using WCF to consume a web service from your .NET application, you have a couple of different options:

  • Using a contract-only assembly reference, generating a proxy at runtime
  • Generate a proxy by running svcutil.exe
  • Adding a service reference to your project from Visual Studio

This post is focused on the last of these three options. When adding a service reference, Visual Studio presents you with a dialog box which allows you some level of control over the proxy being generated. One of these options allows you to choose the namespace for the generated classes.

Unfortunately, there is a small but annoying limitation on your ability to choose any namespace you like; Visual Studio will always prefix whatever namespace you enter with the current project's default namespace.


Tags: , , ,

Programming | .NET | Visual Studio

Indisposable WCF clients

by Marcel Veldhuizen 30. May 2010 10:12

I have spent a considerable amount of time on development in a service-oriented architecture. On the Microsoft platform, the technology of choice is WCF (Windows Communication Foundation). Generally, it is a great technology, but it does have its nuisances. One of them is the way certain error conditions are handled when consuming web services.


Tags: , ,

Programming | .NET


by Marcel Veldhuizen 30. May 2010 03:35

A few years ago I wouldn't have imagined I would start a blog, but things change. Every now and then I have the urge to write about something that I consider interesting, but I have no place to put it. Now I do.

I plan to be focusing mostly on .NET software development. I also expect posts to be infrequent, but who knows, maybe I'll become inspired.

About me

Software development has been one of my major interests from the moment I had (infrequent) access to a computer, at about the age of 10. Over the years, I have dabbled in quite a number of programming languages, but nowadays I do most of my development using Microsoft .NET.

On the internet, I mostly go by the nickname Thorarin. On occasion, I can be found on Stack Overflow, a great programming Q&A website. In the unlikely event that you haven't heard about it, check it out.

In everyday life, I work as a software engineer for the technology research department of a company in the health IT industry. Now that has been said: opinions expressed here should be considered strictly my own.




Marcel Veldhuizen

Software Architect by profession, mostly focused on Microsoft .NET technology.

Metal enthusiast; I love going to concerts :)



Recent Tweets

Note: For Customization and Configuration, CheckOut Recent Tweets Documentation