Core Steps:
- add Maven dependencies with web-service-starter
-
create .xsd files
to define web service domain in XML schema, including request, response, entities
- generates domain classes based on the .xsd file (plugin)
- create repository
- create endpoint service with Spring WS annotations
- configure web service bean
Test Your Web Service
Http POST with XML request schema
Resources
- 簡書Spring Boot建立Web Service
- Spring Boot Guides- Producing Web Service
- Spring Boot Tutorials