3

I would be interested to get the community’s opinions on the best way to add versioning information to web services.

In our company we work with Weblogic WLS, OSB and SOA. Now we want to attach the versioning information to the web services, so we see/recognize per web service the current version. The best way would be to work with metadata.

My Question:

What is best practice in this case?

Has someone experience with it?

Knows someone a good tutorial?

alpwing
  • 85
  • 4
  • In case of REST we add that as a part of URI , but if you are using SOAP , I suggest you add that as part of response headers – Vineet Singla May 02 '13 at 05:40
  • In our application we do it by appending the version information in wsdl namespace. http://www.xxx.com/intf/context/module/submodule/Service/ver (e.g. http://www.xxx.com/intf/ecom/seller/order/CreateOrder/v1) – dkaustubh May 02 '13 at 05:50
  • 1
    @VKSingla and how explicit would that be if you set the version in the headers? No, it has to be clear enough. Have a look here:http://stackoverflow.com/questions/972226/how-to-version-rest-uris and http://stackoverflow.com/questions/13314685/versioning-soap-body-vs-entire-service – MeTitus May 02 '13 at 09:00

1 Answers1

3

The best approach I've found for SOAP services is Web Service Contract Design and Versioning for SOA

For REST services, you want to version your media-type

Community
  • 1
  • 1
Tom Howard
  • 6,516
  • 35
  • 58