Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4557728
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:32:57+00:00 2026-05-21T17:32:57+00:00

I am trying to assist one project team to streamline their work by fixing

  • 0

I am trying to assist one project team to streamline their work by fixing some of the pain points.

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.

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 ChannelFactory and I am leaning towards that most. That seems to be a good solution altogether.

However the problem is that, there is a lot of code consuming these services like this

BatchClient client = new BatchClient(); //Batchclient is  a proxy
batchData = client.GetBatchData(batchNumber)

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.

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T17:32:58+00:00Added an answer on May 21, 2026 at 5:32 pm

    Firstly, I believe you could easily fix your ‘have to replace a lot of code’ problem by creating your own proxy BatchClient which would instantiate the channel. It would work essentially the same way as the currently-used generated code does.

    However before moving to the proxy-less, contract-sharing model I’d really consider why you want to move. I don’t use the generated code option anymore, primarily because with familiarity of WCF it’s not necessary. However I believe that the ‘add service reference…’ pattern is easier for WCF beginners, and it really doesn’t cost you at all.

    Ask yourself the following questions (or rather, explain to me):

    • What is the deployment overhead? I don’t see any. The proxy that you’ve generated will work after deployment. You change the service address & behaviours in the configuration file.
    • Problems with source control / get latest? This should not be a problem, either. Just get latest, and use the latest. If the service has changed – and you want to take advantage of the changes – you will need to get latest version of the service contract, if you’re using a shared contract file and instantiating your own channel.
    • Updating the proxy? Lack of familiarity with how the proxy works, what it is and what it does might cause this, but again it’s no easier without the proxy. Really, you just right click up select ‘update service reference’, right?

    The model you are considering is cleaner, and perhaps allows for more flexibility, but it is no simpler. If your team are having problems with maintaining the generated service proxy then I’d address those problems rather than throwing them into the deep end of WCF by removing the proxy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to set RowHeight like this(in code): dgvTruckAvail.RowTemplate.Height = 48; Doesnt' work. I also
We have been trying now for a while to assist the management (of a
Can some one please assist me in this example of TabHost? The problem i
I am trying to run the following code: List<Integer> list = Arrays.asList(1,2,3); ArrayList<Integer> val
Trying to figure out how to do this. I have the style but I'd
I'm trying to write an XSLT transformation which will replace the value in one
I have an application in which I am trying to implement ManyToMany relation between
I am trying to assist users in migrating from a VB6 application to a
For my program, I am trying to assist the user, and reduce his or
I've been trying to write a small library using Thor to help assist me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.