• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

switching servers for a published web service

I received a WSDL file and I developed a project. The service is available on the intranet within the org. Now if they move the service to another server should I receive another WSDL with the revised address? Is there a way to avoid this by using an "alias" in the  address instead of the actual server name or the IP?

In case of a web service made available to the public, from a .com address, how would they handle switching servers without a downtime?

Also, is it possible to have multiple end points in a WSDL so my service reference tries to connect to one server or the other is something fails?

As I am still learning this you may find it all over the place, appreciate a lucid answer. thanks.
ol muser
ol muser
1 Solution
Gary DavisDir Internet SvcsCommented:
It is not necessary to get a new WSDL.

After you instantiate the web service, set the Url property to the url to the web service on the web server you want. This lets you set the endpoint dynamically.

This can also be done by setting the Url property of the web service (set to dynamic instead of static) in Visual Studio (Solution Explorer under Web References) which will put the Url in the application settings. This is not quite as flexible but may be appropriate if the server does not change (much).

Gary Davis
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now