Friday, 8 May 2009

Spring Contract First Web Services

I have no doubt in my mind that the Spring Framework is the bomb! (Something pretty special). When I was required to build a new web service I have to say that I add a bit of pain in going the "contract first" route.
Contract first means building the web service by designing the contract first i.e. the interface with the client or user ... the WSDL.
From thence, all processes are hidden from the client and more importantly most changes will remain hidden from the user i.e. the contract remains intact.

I have built a few clients and it's amazing (read 'crap') how many times I have had to update the client code after a small tweak from the suppliers of the web services.
They must be using contract last ... where the code is finally used to generate the contract and exposure to the code is not controlled or encapsulated enough.
Great for developer turn-around but costs are soon recognised in the long run.

SO invest time in contract first, it's time well worth spent!

No comments:

Post a Comment