My team is developing a service layer in java and a GUI in dot-net, using soap. The GUI developers keep getting upset because the service layer occasionally change the web service interface.
To keep the GUI chaps happy, rather than trashing the original web methods we are now writing new ones that live alongside the existing ones. Since our soap interface design is still being refined this is getting messy, surely there is a better way! Any suggestions?
Further, there are times when we want to deprecate a web service method – is there a java annotation for doing this (one that would show up in the WSDL)?
Thanks for any suggestions
There is no such deprecation annotation that I know of. This is the general pattern that I normally use:
This approach only works really well when you have good separation between your web service code and your actual application code. It helps to think of web service code as a presentation layer.