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 muserTechnology GeneralistAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.