There are 2 approaches : Contract-first & Contract-last.
Contract-first starts with defining first XML schema / WSDL and then creating the Java classes based on them. In Contract-last approach Java classes are defined first than WSDL is generated from that.
Contract-first starts with defining first XML schema / WSDL and then creating the Java classes based on them. In Contract-last approach Java classes are defined first than WSDL is generated from that.