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

  • Home
  • SEARCH
  • 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 3635164
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:52:10+00:00 2026-05-19T00:52:10+00:00

I have a number of different applications that implement the same contract. In my

  • 0

I have a number of different applications that implement the same contract. In my main app, I would like to have one proxy. Then dynamically, given a Uri for a particular application, I would create a web service request and call that. How can that be accomplished? Thanks!

  • 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-19T00:52:11+00:00Added an answer on May 19, 2026 at 12:52 am

    Do these steps:

    • generate your client-side proxy based on one service
    • this will generate the C#/VB.NET classes for you, as well as the app.config (or web.config if your client is a web app)

    • when calling the default service endpoint, you can do something like:

      YourServiceClient client = new YourServiceClient();
      client.CallSomeMethod();
      

      This will use all the settings from the default service endpoint as defined in your config file

    • if you need to provide a different endpoint, do this:

      YourServiceClient client = 
         new YourServiceClient("default", "http://server/YourOtherService.svc");
      client.CallSomeMethod();
      

      There is an overload for the client constructor which will take two parameters: the name of the endpoint configuration in your client config file (you need to look that up after you’ve added the service reference), and the endpoint URL you want to connect to (which can be different from what’s stored in the config).

    If all the other parameters like service contract, binding information etc. stay the same, this method should work and it should allow you to connect to any number of varying endpoints using this second constructor overload.

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

Sidebar

Related Questions

I have to build a number of small independent applications, that can be copied
I have ASP.NET applications deployed on a number of different environments (AppHarbor, Azure, DiscountASP.NET,
I have a project with a number of different classes querying and modifying data
I have some numbers of different length (like 1, 999, 76492, so on) and
I have a number of code value tables that contain a code and a
I have a number of tables that use the trigger/sequence column to simulate auto_increment
I have a C# application that allows one user to enter information about customers
I have a script that appends some rows to a table. One of the
I have a new web app that is packaged as a WAR as part
I would like to have some advices because I've got conflict between clients sending

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.