By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,508 Members | 1,856 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,508 IT Pros & Developers. It's quick & easy.

web service URL - changing at run-time

P: n/a
I understand how to change the URL of a web service at run-time. But, if I
am using a web service in a windows application, what is a good way to
inform the application of the current location of the web service, without
recompiling and redistributing the application?
Nov 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Bill,

One thing you might want to take a look at, is setting up a UDDI
server. It can be used to manage your web services in a central
location. Your client applications can easily query your UDDI server to
find the current location of you services. When you move a service, you
just update the setting in the server and all the clients will point to
the new location.

Windows 2003 ships with a UDDI server component . You can check out the
following links for more info.

http://www.microsoft.com/windowsserv...t/uddifaq.mspx
http://msdn.microsoft.com/nhp/Defaul...entid=28001204

Another thing you can look at, is just setting the URLBehaviour
property of your web reference to dynamic. With this setting, the URL
of your web service is stored in your web.config. This would allow you
to avoid having to recompile your application. However, you would still
have to redeploy a new web.config. Therefore, I would recommend the
UDDI server.

Hope that helps

Peter Kelcey

Nov 23 '05 #2

P: n/a
Setting up UDDI could be the ideal wayout.
Another way could be you can read it from an XML file, so that you dont have
worry about recompling.

-- Kumar Shetgar

"bill" wrote:
I understand how to change the URL of a web service at run-time. But, if I
am using a web service in a windows application, what is a good way to
inform the application of the current location of the web service, without
recompiling and redistributing the application?

Nov 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.