M
Maziar Aflatoun
Hi,
Is there a way to connect to a Web Service dynamically at runtime (Web
Reference URL)? I have always used Visual Studio to create a Web Reference
and then used it in my code. However, that always requires the URL to the
Web Service to be the same on the staging site and the production site. Now
I have two instances of the same application running (Staging site and
Production) and want to store the URL in a file instead. Is there a way to
do this?
ex. Web.Config AppSetting <add key="WebServiceURL"
Value=http://....webserv.asmx>
Thank you
Maz.
Is there a way to connect to a Web Service dynamically at runtime (Web
Reference URL)? I have always used Visual Studio to create a Web Reference
and then used it in my code. However, that always requires the URL to the
Web Service to be the same on the staging site and the production site. Now
I have two instances of the same application running (Staging site and
Production) and want to store the URL in a file instead. Is there a way to
do this?
ex. Web.Config AppSetting <add key="WebServiceURL"
Value=http://....webserv.asmx>
Thank you
Maz.