How is the proxy generated?If you are using wsdl.exe then the /appsettingurlkey:%1 key is what you are after.The proxy then reads from the [EMAIL PROTECTED]
> Date: Wed, 5 Mar 2008 11:16:22 -0500> From: [EMAIL PROTECTED]> Subject: Re: > [ADVANCED-DOTNET] Dynamically changing web service URL> To: > ADVANCED-DOTNET@DISCUSS.DEVELOP.COM> > How is your dll used?> > Is it > called/referenced by a .net .exe application?> > > -----Original > Message-----> From: Discussion of advanced .NET topics.> [mailto:[EMAIL > PROTECTED] Behalf Of Simon Robinson> Sent: Wednesday, March 05, 2008 10:22 > AM> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM> Subject: [ADVANCED-DOTNET] > Dynamically changing web service URL> > > I have a C# dll project which calls > a web service. I need to be able to> vary the URL used to call the web > service *after* building the application> (so I can deploy it with different > deployed instances referring to> different URLs). When calling a web service > from web or .exe apps, that's> easy - just make sure the URL behaviour is set > to dynamic and then change> the URL in the app.config or web.config as > required. However that doesn't> seem to work when the app is a class library > dll (I can change the URL in> the VS Properties window or in the .dll.config, > but it has no effect - the> value is clearly being ignored by the app).> > > After some digging, I found the place I need to change the web service URL> > buried in an XML file called settings.settings. Unfortunately, AFAICS this> > file only seems to be accessible with the source code, which means I can't> > access it to change settings after building the project.> > Anyone know of a > way out of this, or a way to make URL behaviour> dynamically configurable?> > > ===================================> This list is hosted by DevelopMentorĀ® > http://www.develop.com> > View archives and manage your subscription(s) at > http://discuss.develop.com> > ===================================> This list > is hosted by DevelopMentorĀ® http://www.develop.com> > View archives and > manage your subscription(s) at http://discuss.develop.com _________________________________________________________________ Who's friends with who and co-starred in what? http://www.searchgamesbox.com/celebrityseparation.shtml =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com