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 6634489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:56:09+00:00 2026-05-25T22:56:09+00:00

I have a web reference to web-service: using (var client = new GetTemplateParamSoapClient(GetTemplateParamSoap)) {

  • 0

I have a web reference to web-service:

using (var client = new GetTemplateParamSoapClient("GetTemplateParamSoap"))
{
    TemplateParamsKeyValue[] responsArray = client.GetTemplatesParamsPerId(
        CtId, tempalteIds.ToArray());

    foreach (var pair in responsArray)
    {
        string value = FetchTemplateValue(pair.Key, pair.Value);
        TemplateComponentsData.Add(pair.Key, value);
    }
}

Tried to change a web-reference url from c# code: as advice here:

1) http://www.codeproject.com/KB/XML/wsdldynamicurl.aspx

2) How to call a web service with a configurable URL

3) http://aspalliance.com/283_Setting_Web_Service_References_Dynamically

But I get symbol is missing when trying to do:

client.Url

In addition I couldn’t find a property of “Url_behavior”

  • 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-25T22:56:10+00:00Added an answer on May 25, 2026 at 10:56 pm

    It sounds like you’ve already added the service reference, but here’s a walkthrough on adding, updating and removing service references.

    Once you’ve got one of those in your project, you can alter the endpoint URI with one of the constructor overloads, as John Saunders said above. To do this, you’ll need to know the name of the endpoint in your config file. For instance, after you add your service you might have elements like this in your config file:

    <endpoint address="http://bleh.com/services/servicename.asmx"
        binding="basicHttpBinding" bindingConfiguration="ServiceNameSoap"
        contract="ServiceReference1.ServiceNameSoap" name="ServiceNameSoap" />
    

    Given that endpoint, you can change the address at runtime by using the following overload:

    var proxy = new ServiceReference1.ServiceNameSoapClient("ServiceNameSoap",
        "http://new-address.com/services/servicename.asmx");
    

    You can also do it after construction, but that becomes a little bit harder. If you need to do so, see the documentation on the Endpoint property and the associated type ServiceEndpoint.

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

Sidebar

Related Questions

I have a Service Reference (not a web reference) in VS2008 to a web
I have a Web Reference to a remote Web Service, which is called in
I have a .net project that has a web reference to a service. I
I have some types which are generated by a web service reference. I want
I have a class library (.NET) with a reference to a web service (in
I have a web service created using Apache CXF, and two .NET clients using
I have added a web reference to a WCF service in my MT project
I am using Visual Studio 2008 and have added a web reference that points
I have a problem with a web service. I add a web service reference
I'm trying to create a C# program using a Sharepoint Web Service reference that

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.