Add support for Spring WS auto WSDL/XSD exposure

This commit adds support for auto-configuration of Spring WS automatic
WSDL and XSD exposure i.e. registration of `WsdlDefinition` and
`XsdDefinition` beans. The bean registration is triggered by configuring
`spring.webservices.wsdl-locations` property which will search the
provided locations for WSDL/XSD files and register appropriate beans.

See gh-9635
This commit is contained in:
Vedran Pavic
2017-06-29 13:36:14 +02:00
committed by Stephane Nicoll
parent 32102c693b
commit bb72a4abe1
9 changed files with 164 additions and 7 deletions

View File

@@ -472,6 +472,7 @@ content into your application; rather pick only the properties that you need.
spring.webservices.path=/services # Path that serves as the base URI for the services.
spring.webservices.servlet.init= # Servlet init parameters to pass to Spring Web Services.
spring.webservices.servlet.load-on-startup=-1 # Load on startup priority of the Spring Web Services servlet.
spring.webservices.wsdl-locations= # Comma-separated list of locations of WSDLs and accompanying XSDs to be exposed as beans.
[[common-application-properties-security]]

View File

@@ -6560,6 +6560,11 @@ your `Endpoints`.
The {spring-webservices-reference}[Spring Web Services features] can be easily accessed
via the `spring-boot-starter-webservices` module.
Spring Boot can also automatically expose your WSDLs and XSDs using
`spring.webservices.wsdl-locations` configuration property. For the detected WSDL and XSD
files Boot will register beans of type `SimpleWsdl11Definition` and `SimpleXsdSchema`,
respectively.
[[boot-features-developing-auto-configuration]]