天天看點

Spring Boot Produce a Web ServiceCore Steps:Test Your Web ServiceResources

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

  1. 簡書Spring Boot建立Web Service
  2. Spring Boot Guides- Producing Web Service
  3. Spring Boot Tutorials