Supporting Web Service Versions

Recently we needed to add a couple of parameters onto complex objects for a SOAP based web service we maintain. However we can’t have these new parameters required due to old versions of the client code being in the wild. As a quick solution I copied the web service code and made it add minOccurs onto elements what had a code comment of @optional, not the best solution.

My proposal would be to expand the web service code so that it could generate WSDL files based on versions of the web service. It would require being able to request the WSDL for a particular version and the WsdlGenerator could use the @since code comment to include or omit types accordingly.

I’d be happy to work on this but not if it’s a rubbish idea ;)