Please enable JavaScript.
Coggle requires JavaScript to display documents.
Spring Boot (:recycle:Creating a SOAP Web Service with Spring (Setting Up…
Spring Boot
:recycle:Creating a SOAP Web Service with Spring
SOAP
XML documents over HTTP
WSDL
Web Services Description Language
Setting Up the Spring Boot Project
The XSD File
use an XML schema file (XSD) that Spring-WS will export automatically as a WSDL
Maven Dependencies
add the spring-boot-starter-web-services and wsdl4j dependencies
Generate the Domain Java Classes
jaxb2-maven-plugin
The plugin uses the XJC tool as code generation engine. XJC compiles the XSD schema file into fully annotated Java classes.
Add the SOAP Web Service Endpoint
create a Country repository
configure the endpoint
The SOAP Web Service Configuration Beans
Spring Validation
在Spring Boot2.3後
add
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
在Controller上加上@Validation