all groups > dotnet web services enhancements > may 2006 >
You're in the

dotnet web services enhancements

group:

Web service updating


Web service updating drabee
5/23/2006 2:33:02 AM
dotnet web services enhancements: i have website using web service if i modified the web service can i update
my website automatically without updating the referance from my wesite
Re: Web service updating Robert Wilczynski
5/23/2006 4:21:57 PM
Hi,

It depends on what you mean by "i modified the web service". If you only
modified the internal behavior and didn't touch the contract part (web service
method parameters and return values) then no modifications are necessary
to the website. If you did change the contract you will probably have to
regenerate the web service proxy and fix the method calls in your website
code. If you need more help, please be more specific about the changes you've
made to your webservice.

Best regrds,
Robert Wilczynski.


[quoted text, click to view]

Re: Web service updating drabee
5/27/2006 2:35:01 AM
Thank you very much
suppose i want to add new method to the web service can i even using code to
regenerate the web service proxy without doing this manualy .
means , my website will detect automatically that my web service has been
changed and automatically will regenerate the web service proxy

[quoted text, click to view]
Re: Web service updating Robert Wilczynski
5/27/2006 12:39:22 PM
Hi,

Adding a new method to the webservice doesn't really break a contract between
the service and the web site using it. Your web site will only be aware of
a subset of operations offerd by the service and as long as those are not
modified it can use them. If adding a new method is your only change there
is no need to update the web site.

The approch you've described (amutomatic proxy regeneration on service updates)
doesn't really make sense. You could do it but:

1) if you don't change the methods used by the web site or only change the
implementation of such methods there is no reason to do it.
2) if you change the methods used by the web site (add or remove arguments
etc) this will break the contract. Even if you regenerate the proxy how will
you regenerate the assemblies that are using it?

Does that help?

Best regards,
Robert Wilczynski.

[quoted text, click to view]

AddThis Social Bookmark Button