WCF client's and versioning

柔情痞子 提交于 2019-12-07 13:02:55

问题


If I change the WCF, do I have to run some sort of update on all client computers that are accessing the service? (i.e. run svutils.exe and update all app.config's etc?)


回答1:


Read about data contact versioning:

Data Contact Versioning:

Forward-Compatible Data Contracts

Best Practices: Data Contract Versioning




回答2:


Not unless the message changes and the change is required to use your service.




回答3:


If the signature of the WCF method does not change, then you will not need to update the clients. You can add new methods to the service if you need, instead of changing the signatures of existing methods.



来源:https://stackoverflow.com/questions/225739/wcf-clients-and-versioning

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!