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.
Post by drabeeThank 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
Post by Robert WilczynskiHi,
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.
Post by drabeei have website using web service if i modified the web service can i
update my website automatically without updating the referance from
my wesite ....Say YES please