web service and updating web reference with vb.net design time vs run time 
Author Message
 web service and updating web reference with vb.net design time vs run time

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.


Tue, 22 Feb 2005 22:04:59 GMT  
 web service and updating web reference with vb.net design time vs run time
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.

Quote:
> 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.



Wed, 23 Feb 2005 10:02:45 GMT  
 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.



Wed, 23 Feb 2005 22:15:26 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. web service and updating web reference with vb.net design time vs run time

2. Design time vs Run time

3. Run Time vs Design Time - No Current Record

4. Design Time vs Run Time

5. Design time vs. Run time

6. Conversion time from COM to .NET Web Service

7. Assign a treeview at design run time to other at design time

8. Code running in design time or run-time?

9. Copy / Paste special in to a VB app to get real-time numbers updated from Web

10. Copy / Paste special in to a VB app to get real-time numbers updated from Web

11. Copy / Paste special in to a VB app to get real-time numbers updated from Web

12. Where is Web Design-Time Control Type Library?

 

 
Powered by phpBB® Forum Software