services/binildas.com">
2.2
....
Web Service Versioning Approaches
We have seen a few strategies of web service versioning. Let us now look at some
approaches of implementing those versioning strategies.
Covenant
A covenant is an if-then-else way of versioning approach. This can be done using
multiple strategies which we saw earlier. In any strategy, the covenant approach
looks for some ifs, and depending upon the outcome of the condition a suitable
then clause will be executed. It can also have an else or a default clause. Hence this
approach is usually combined with a versioning flag and this flag can be either in
the form of a version parameter or in the form of a version sensitive value in the
targetNamespace. This is shown in the following figure:
Chapter 14
[ 269 ]
A covenant is usually exposed in a Single Endpoint Address. Hence, all Consumers
will send messages to the same address. Depending upon which version of the
service contract the Consumer is using a suitable version flag will be passed either
as a version parameter or through the targetNamespace.
Pages:
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372