
web service and updating web reference with vb.net design time vs run time
I see that there is an option to add app.config and from there you add the
key for the url of the web service. However it seems to be only taking one
key. If I put two in it will only recognize the last one. What I need is at
run time for the app to test and see if it connects to the web service if it
does great if not point to another one. Is there something that I am missing
in the app.config settings? Or is there a way to point to another app.config
file with a different url key for another web service if the first one
fails? Thanks.
Quote:
> Hi Jake,
> If you add new functions to your web service then you will have to refresh
> the web reference in the Solution Explorer. I think you just right-click
on
> the web reference and select 'Update Web Reference' or something like that
> (sorry...I don't have VS.NET on this PC). If you simply make changes to
> existing code in your web reference then you don't need to do anything as
> your app will automatically use the current version of the web service
> functions.
> In regards to detecting different versions of your web service running on
> differnet servers, you need to go into the properties for the Web
REference
> and set one of them to 'Dynamic'. Again, apologise for not being a little
> more specific but I am doing this off the top of my head. I shouldn't be
> too hard to find as their aren't too many properties for your web
reference.
> Maybe someone else in the group could help with this. Onve you have done
> this you will be able to change the path to your web service in your
> app.config file.
> HTH
> Jake Morath.
> > I am curious how vb.net will handle changes from the web service. For
> > example I compile my vb.net application and then I need to make a change
> in
> > the web service but not the application. How does vb.net update the web
> > reference, or does it? I have noticed in the development environment
that
> I
> > need to manual update the web reference. Is this done automatically in
the
> > vb.net compiled application or is there some code that I need to add to
my
> > application? Also is there a way to have the web references be added
> during
> > run time opposed to design time? If the web service dies I want to be
able
> > to reference a different one to avoid downtime. Thanks in advance for
your
> > time. Any clarification and code samples would be great.