Adding methods to the webservice: do old clients need to update web references?

后端 未结 5 1713
日久生厌
日久生厌 2020-12-10 11:35

ProductA uses our only web service, which is a separate deployment from ProductA. We deploy both to production.

Later, we\'re writing ProductB. During that effort,

5条回答
  •  佛祖请我去吃肉
    2020-12-10 12:13

    Just to add a little more detail to the existing answer, the only changes to a web service that require corresponding changes to the client proxy are:

    • Removing methods;
    • Changing method signatures;
    • Changing the bindings/behaviour (i.e. to use encryption).

    Adding a new method, or adding new fields/properties to a type, are almost always non-breaking changes (still, it doesn't hurt to test with the client).

    Keep in mind, of course, that the client won't actually be able to use those new methods or properties until they rebuild. But it won't break existing functionality.

提交回复
热议问题