Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call web services dynamically
Message
 
To
11/10/2004 02:16:49
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
00950330
Message ID:
00950500
Views:
12
You can set a Web Service Reference in your projects to get the actual URL at runtime from your app.config file. That way, you don't need to recompile your project to have your web services point to a different server. Nor do you need to manually set the URL on the fly everytime you instanciate the web service.

If you remove the item in the app.config that has the URL for a particular web service the application will use whatever URL was in the Web Service Reference at the time the application was compiled. This is very usefull if you don't want to expose in your app.config the URL of the actual server but want to be able to change the URL for testing purposes without recompiling the application.


>Hi,
>I have web services sold to couples of customer. Of course, they would have own ISP/Web Server, with different URL. My question is, how could I call the SAME web services from my client app which hosted in difference web site without I change my project web reference everytime?
>
>Thank you
Hector Correa
Previous
Reply
Map
View

Click here to load this message in the networking platform