REST service usually are implemented by a code first approach. To use a code first approach to implement a SOAP service Apache CXF should be used.
Apache CXF provides a dependency:
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-spring-boot-starter-jaxws</artifactId>
<version>3.1.11</version>
</dependency>
The following Profile
soap
- activate the SOAP Endpointswagger
- activate Swagger Endpoint and UI
http://localhost:8080/swagger-ui.html