B
Bob
It's great that VS.NET makes it so effortless to add a web reference to a
web service. The problem is, I haven't figured out a way to configure the
URLs (or simply switch the references to another web reference) easily when
I move my app from development, to staging, to production, as I have
corresponding environments for the web services too. So far what I have
done is copying the Reference.cs file out and creating a separate class by
modifying it, letting it read the URL from say, my app config file. This is
manual and if I have a change to the service, I have to manually modified
these proxy classes too. I just keep thinking if VS.NET made it this far,
allowing a dynamic config of the web reference shouldn't be too difficult.
Yet I can't figure out how to do this. Could anyone give me some
suggestions?
Thanks
Bob
web service. The problem is, I haven't figured out a way to configure the
URLs (or simply switch the references to another web reference) easily when
I move my app from development, to staging, to production, as I have
corresponding environments for the web services too. So far what I have
done is copying the Reference.cs file out and creating a separate class by
modifying it, letting it read the URL from say, my app config file. This is
manual and if I have a change to the service, I have to manually modified
these proxy classes too. I just keep thinking if VS.NET made it this far,
allowing a dynamic config of the web reference shouldn't be too difficult.
Yet I can't figure out how to do this. Could anyone give me some
suggestions?
Thanks
Bob