
Originally Posted by
aerosteak
I am starting to work with web Service. I just read the SpringWS Tutorial and I totally agree with the contract-first and the data-driven communication concept.
Here is my question: why use WSDL when you can convert any Java Interface and Bean into a WebServices?
If a tool gives you the possibility to move from xml to java (and vice-versa), why not stay with a java interface?
To quote Rod Johnson: ‘…the Java interface is a contract…’.
What are the pitfalls of using this technique (other than being too easy to change the contract)?