What you are describing is *NOT* "adding a webreference programatically". You
are describing setting the Url property of a pre-existing webService proxy
client class at runtime. You can do this by simply pulling out your url from
an appSettings element in the web.config, or from a database, and setting the
Url property just before making the proxy method call.
This code here
http://weblogs.shockbyte.com.ar/rodo.../09/10698.aspx
*IS* an example of dynamically creating a webreference and proxy class.
There are other similar such examples should you care to look.
Peter
--
Site:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
Short urls & more:
http://ittyurl.net
"bbdobuddy" wrote:
I found out some info. I think all I need to do is to change the url in the
web services proxy. Does anyone have any code that I could see how to do this
Thanks
"bbdobuddy" wrote:
I need to add a web reference programatically on the application's load
event. Can anybody help me out with this
Thanks in advance