Publish a SOAP Web Service With Spring Boot
Design document-driven, contract-first SOAP web services with Spring Boot and Spring Web Services.
SOAP Web Services (Spring-WS) is an offering from Spring Framework that facilitates creating document-driven, contract-first SOAP web services. One of the main reasons to use Spring-WS is that it has built-in integration with Spring Framework and the ability to leverage major Spring features such as dependency injection. Also, the architecture of Spring-WS resembles that of Spring-MVC and this makes the learning of Spring-WS much easier.
In this article, we will develop a contract-first soap web service with Spring boot. In the development process, we will highlight the core Spring-WS features.
What are we Building?
We are developing a SOAP web service that let users perform basic arithmetic calculation such as addition, subtraction, multiplication, and division. Note that Spring supports contract-first web service development. In the contract-first design approach, the service definitions are designed before the actual coding is done. In the next section, let us define the WSDL of our service.