Design of SOAP

The two designs namely that top down, wsdl first or contract first approach and the second approach which is the bottom up or code first approach.

The advantages of top down or contract first approach which is the wsdl is very easy for a tester or a developer or an analyst to understand because the wsdl file is nothing but xml file and also wsdl first approach offers better interoperability because we'll be using all the elements will be defining all the schema in the wsdl file and then generate our code. Instead of coming up with the code first where We can use some language constructs that might be available only in certain language but not in other languages. So there will be interoperability issues usually when we do a code first approach and use a custom data structures that are available in only a particular language.

The bottom up approach has its advantages. We can easily expose out an existing application for which the code has already been written using the code first approach. In the code first approach we write the code and then generate the wsdl file from the code. 

Which approach to choose? 

Use the wsdl first or contact first approach as much as possible and use the code first approach only then you're exposing out the legacy applications.

Referencias

Comentarios