There are basically 2 different approaches available for developing SOAP-based web services. These are explained as follows
- Contract-first approach: In this approach, the contract is defined first by XML and WSDL and then java classes are derived from the contract.
- Contract-last approach: In this approach, java classes are defined first and then the contract is generated which is usually the WSDL file from the java class.
“Contract-first” method is the most preferred approach.