what do contract-first and contract-last mean?

后端 未结 2 1246
野的像风
野的像风 2020-12-28 17:26

I am doing some research on web services. I have not written any web service but I am doing a small write up on them.

During my research I\'ve come across terms

2条回答
  •  攒了一身酷
    2020-12-28 18:06

    To expound on the answer by Kaleb, contract-first is where you create the WSDL, and then you can create the implementation from this, and since the WSDL is your contract, this would be contract-first.

    Contract-last is where the WSDL is created from the source code, or implementation, so it will most likely be generated by a tool rather than created by the developer.

    Update:

    For a nice explanation with code, in Java, you can look at this explanation from the Spring Web Services 1.5 documentation.

    They will discuss the pros and cons, though they will be biased toward their approach (which is contract-first). Anyway, I think it is a nice explanation.

提交回复
热议问题