SOAP Web Service - studiofu/brain GitHub Wiki
Quick Start
-
use JAX-WS for the contract-first approach
-
define the required request and response format in the WSDL XSD file.
-
use jaxb2 maven plugin to generate the SOAP java classes
-
The class annotated by @Endpoint become the web service end point
- methods annotated @PayloadRoot become the method accepting incoming request
- attribute namespace used to specify the payload namespace
- attribute localPart used to specify the payload root element
-
use CXF for the contract-last approach
- the WSDL file is generated by referring to the class
- demo - https://github.com/quantificial/demo-cxf
-
use CXF to produce endpoint for policy information query
- support https endpoint
- demo client to consume https endpoint
- JPA example
- https://github.com/quantificial/demo-ans-webservice
Resources
Creating a SOAP Web Service with Spring
https://www.baeldung.com/spring-boot-soap-web-service
Spring Boot SOAP Web Service Example
https://www.concretepage.com/spring-boot/spring-boot-soap-web-service-example
SpringBoot + CXF快速实现SOAP WebService(支持Basic Auth)
https://www.cnblogs.com/lichmama/p/8728262.html
SOAP Web Services With Apache CXF and Spring Boot - Contract First