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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns theSourceof the definition.voidsetCreateSoap11Binding(boolean createSoap11Binding) Indicates whether a SOAP 1.1 binding should be created.voidsetCreateSoap12Binding(boolean createSoap12Binding) Indicates whether a SOAP 1.2 binding should be created.voidsetFaultSuffix(String faultSuffix) Sets the suffix used to detect fault elements in the schema.voidsetLocationUri(String locationUri) Sets the value used for the SOAP Address location attribute value.voidsetPortTypeName(String portTypeName) Sets the port type name used for this definition.voidsetRequestSuffix(String requestSuffix) Sets the suffix used to detect request elements in the schema.voidsetResponseSuffix(String responseSuffix) Sets the suffix used to detect response elements in the schema.voidSets the single XSD schema to inline.voidsetSchemaCollection(XsdSchemaCollection schemaCollection) Sets the XSD schema collection to inline.voidsetServiceName(String serviceName) Sets the service name.voidsetSoapActions(Properties soapActions) Sets the SOAP Actions for this binding.voidsetTargetNamespace(String targetNamespace) Sets the target namespace used for this definition.voidsetTransportUri(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, orschemaCollectionmust be set. -
setSchemaCollection
Sets the XSD schema collection to inline. Either this property, orschemamust 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
Serviceappended to it. -
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getSource
Description copied from interface:WsdlDefinitionReturns theSourceof the definition.- Specified by:
getSourcein interfaceWsdlDefinition- Returns:
- the
Sourceof this WSDL definition
-