title: Alternative to service reference
body: <p>I am trying to assist one project team to streamline their work by fixing some of the pain points. </p>
  
  <p>One of the pain points they have in their code is that, they are using WCF service via service references (proxy) [i.e. "Add Service Reference" in Visua Studio 2008. This creates a lot of problem including deployment overhead, Souce Control get latest related problems of updating proxy etc. </p>
  
  <p>In order to handle these and other related issues with service reference, I am looking for a good alternative to service references. I have already seen <a href="http://msdn.microsoft.com/en-us/library/ms734681.aspx" rel="nofollow">ChannelFactory</a> and I am leaning towards that most. That seems to be a good solution altogether. </p>
  
  <p>However the problem is that, there is a lot of code consuming these services like this</p>
  
  <pre><code>BatchClient client = new BatchClient(); //Batchclient is  a proxy
  batchData = client.GetBatchData(batchNumber)
  </code></pre>
  
  <p>So if I go the ChannelFactory path, I would need to update all code piece like the above throughout the project. Because of amount of changes, the team is not very comfortable with this option.</p>
  
  <p>Question I have is that, is there any other better alternative to "Add service reference" which can be used with minimal code changes? Or is there any way I could use the ChannelFactory without affecting exsting code pieces?</p>