Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a web service hosted on a server. I have another asp.net application consuming this web service. My requirement is if there is any change in the web service (hosted on the server) the web reference (web service proxy class) in the client application should be updated automatically. If the client application is in Visual Studio we can right click the web reference and click Update. But how to automatically the update the web reference in the client application if the client application is published. Can we include some code such that the client application always updates the web reference during runtime
Posted
Comments
F-ES Sitecore 30-Sep-15 5:24am    
So if the service has added three new parameters, how are you going to change the client code to supply those parameters? Or the service has removed a parm or renamed it, or if one call is now two calls? How is the client going to know the service has changed?

Just update the reference manually, if it could be done automatically then it already would be. The client has no way of knowing the hosted service has changed, and no way of knowing how to use the new service either, it has to be coded by a sentient being.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900