Class DefaultWsdl11Definition
java.lang.Object
org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,Wsdl11Definition
,WsdlDefinition
public class DefaultWsdl11Definition
extends Object
implements Wsdl11Definition, org.springframework.beans.factory.InitializingBean
Convenient implementation of
Wsdl11Definition
that creates a SOAP 1.1 or 1.2 binding based on naming
conventions in one or more inlined XSD schemas. Delegates to InliningXsdSchemaTypesProvider
,
DefaultMessagesProvider
, SuffixBasedPortTypesProvider
, SoapProvider
underneath; effectively
equivalent to using a ProviderBasedWsdl4jDefinition
with all these providers.
Example configuration:
<bean id="airline" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition"> <property name="schema"> <bean class="org.springframework.xml.xsd.SimpleXsdSchema"> <property name="xsd" value="/WEB-INF/airline.xsd"/> </bean> </property> <property name="portTypeName" value="Airline"/> <property name="locationUri" value="http://localhost:8080/airline/services"/> </bean>
- Since:
- 1.5.0
- Author:
- Arjen Poutsma
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns theSource
of the definition.void
setCreateSoap11Binding
(boolean createSoap11Binding) Indicates whether a SOAP 1.1 binding should be created.void
setCreateSoap12Binding
(boolean createSoap12Binding) Indicates whether a SOAP 1.2 binding should be created.void
setFaultSuffix
(String faultSuffix) Sets the suffix used to detect fault elements in the schema.void
setLocationUri
(String locationUri) Sets the value used for the SOAP Address location attribute value.void
setPortTypeName
(String portTypeName) Sets the port type name used for this definition.void
setRequestSuffix
(String requestSuffix) Sets the suffix used to detect request elements in the schema.void
setResponseSuffix
(String responseSuffix) Sets the suffix used to detect response elements in the schema.void
Sets the single XSD schema to inline.void
setSchemaCollection
(XsdSchemaCollection schemaCollection) Sets the XSD schema collection to inline.void
setServiceName
(String serviceName) Sets the service name.void
setSoapActions
(Properties soapActions) Sets the SOAP Actions for this binding.void
setTargetNamespace
(String targetNamespace) Sets the target namespace used for this definition.void
setTransportUri
(String transportUri) Sets the value used for the binding transport attribute value.
-
Constructor Details
-
DefaultWsdl11Definition
public DefaultWsdl11Definition()Creates a new instance of theDefaultWsdl11Definition
.
-
-
Method Details
-
setTargetNamespace
Sets the target namespace used for this definition.Defaults to the target namespace of the defined schema.
-
setSchema
Sets the single XSD schema to inline. Either this property, orschemaCollection
must be set. -
setSchemaCollection
Sets the XSD schema collection to inline. Either this property, orschema
must be set. -
setPortTypeName
Sets the port type name used for this definition. Required. -
setRequestSuffix
Sets the suffix used to detect request elements in the schema. -
setResponseSuffix
Sets the suffix used to detect response elements in the schema. -
setFaultSuffix
Sets the suffix used to detect fault elements in the schema. -
setCreateSoap11Binding
public void setCreateSoap11Binding(boolean createSoap11Binding) Indicates whether a SOAP 1.1 binding should be created.Defaults to
true
. -
setCreateSoap12Binding
public void setCreateSoap12Binding(boolean createSoap12Binding) Indicates whether a SOAP 1.2 binding should be created.Defaults to
false
. -
setSoapActions
Sets the SOAP Actions for this binding. Keys arebinding operation names
; values areSOAP Action URIs
.- Parameters:
soapActions
- the soap
-
setTransportUri
Sets the value used for the binding transport attribute value. Defaults to HTTP. -
setLocationUri
Sets the value used for the SOAP Address location attribute value. -
setServiceName
Sets the service name.Defaults to the port type name, with the suffix
Service
appended to it. -
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
getSource
Description copied from interface:WsdlDefinition
Returns theSource
of the definition.- Specified by:
getSource
in interfaceWsdlDefinition
- Returns:
- the
Source
of this WSDL definition
-