Apologies for the delayed post.
It seems to me that you are partly in agreement with the fact that WSDL should be the business contract ? After you agree on a WSDL and then start implementing are you suggesting a 'meet in the middle approach' where you try to generate the exact WSDL by adding annotations to the code rather than starting from the WSDL ? IMHO that is somewhat impractical - mainly because annotations may not be rich enough to completely take over the control of the schema generation process. Also it is not going to work across multiple languages and multiple frameworks!
There is one very valid point about schemas though. If the schema is overly complex and employs every legal but not-so-elegant construct, then the generated code also will be difficult to handle,specially if the code is in an object oriented language and data bound. This is an identified problem and there is already a W3C spec group working on it. What they try to accomplish is to come up with a set of recommendations to schema writers that will give better data binding experience. |