Browse Source
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-9635pull/10422/head
9 changed files with 164 additions and 7 deletions
@ -0,0 +1,49 @@
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" |
||||
xmlns:tns="http://www.springframework.org/spring-ws/wsdl" |
||||
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" |
||||
targetNamespace="http://www.springframework.org/spring-ws/wsdl"> |
||||
|
||||
<wsdl:types> |
||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" |
||||
targetNamespace="http://www.springframework.org/spring-ws/wsdl"> |
||||
<xsd:element name="request" type="xsd:string"/> |
||||
<xsd:element name="response" type="xsd:string"/> |
||||
</xsd:schema> |
||||
</wsdl:types> |
||||
|
||||
<wsdl:message name="responseMessage"> |
||||
<wsdl:part name="body" element="tns:response"/> |
||||
</wsdl:message> |
||||
|
||||
<wsdl:message name="requestMessage"> |
||||
<wsdl:part name="body" element="tns:request"/> |
||||
</wsdl:message> |
||||
|
||||
<wsdl:portType name="portType"> |
||||
<wsdl:operation name="operation"> |
||||
<wsdl:input message="tns:requestMessage" name="request"/> |
||||
<wsdl:output message="tns:responseMessage" name="response"/> |
||||
</wsdl:operation> |
||||
</wsdl:portType> |
||||
|
||||
<wsdl:binding name="binding" type="tns:portType"> |
||||
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> |
||||
<wsdl:operation name="operation"> |
||||
<wsdlsoap:operation soapAction=""/> |
||||
<wsdl:input name="request"> |
||||
<wsdlsoap:body use="literal"/> |
||||
</wsdl:input> |
||||
<wsdl:output name="response"> |
||||
<wsdlsoap:body use="literal"/> |
||||
</wsdl:output> |
||||
</wsdl:operation> |
||||
</wsdl:binding> |
||||
|
||||
<wsdl:service name="service"> |
||||
<wsdl:port binding="tns:binding" name="port"> |
||||
<wsdlsoap:address location="/services"/> |
||||
</wsdl:port> |
||||
</wsdl:service> |
||||
</wsdl:definitions> |
||||
|
||||
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" |
||||
targetNamespace="http://www.springframework.org/spring-ws/wsdl/schemas"> |
||||
<element name="request" type="string"/> |
||||
<element name="response" type="string"/> |
||||
</schema> |
||||
Loading…
Reference in new issue