Kirk Evans Blog

.NET From a Markup Perspective

Versioning Web Services

Versioning Web Services

  • Comments 2

Don and Dare have been posting on versioning web service endpoints.  Don favors versioning with a single parameter, while Dare favors multiple parameters.  I agree with Don.

Don makes a distinction between a service that is service-oriented and one that is not.  I am not sure I agree with the distinction, though.  This is akin to justifying 500 lines of code in Button1_Click events versus proper application design: jsut because you can, doesn't mean you should, even in smaller scale scenarios. 

If you version a service interface by adding parameters, then you affect the ability for legacy systems to version along with the system.  Instead of focusing on the message contract, they are now split between the message contract and an independently versioned API.

The key point is that the focus is on the message contract.  The schema itself is the asset to the enterprise, not the individual realization of the schema in a single service endpoint.  The goal for services is to create them so that the service interface has a longer lifespan than its implementation.  The schema can (and should) be reused among multiple service endpoints, and new message types should be formed that composite existing schema types together.  By encapsulaing version information within the message schema, you enable this type of composition within a single message contract.

Consider also that many current implementations of SOA are not API-based, but rather focused on the transport.  Many messages are not transported with a full SOAP envelope, but rather the XML payload that is later wrapped with a SOAP envelope.  Versioning the proxy and server to accomodate multiple messages within a single queue message puts more burden on a greater number of systems as the number of touchpoints across the enterprise increases.

  • So if we were really going to decouple the contract from the implementation then you would also have to decouple and abstract the actual services because services themselves can be added all the time.

    You would have to have a generic service method that would route the message based on the message itself and not on the service method called.
Page 1 of 1 (2 items)
Leave a Comment
  • Please add 8 and 1 and type the answer here:
  • Post
Translate This Page
Search
Archive
Archives