public class DefaultWsdl11Definition extends Object implements Wsdl11Definition, org.springframework.beans.factory.InitializingBean
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>
Constructor and Description |
---|
DefaultWsdl11Definition()
Creates a new instance of the
DefaultWsdl11Definition . |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
Source |
getSource()
Returns the
Source 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 |
setSchema(XsdSchema schema)
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.
|
public DefaultWsdl11Definition()
DefaultWsdl11Definition
.public void setTargetNamespace(String targetNamespace)
Defaults to the target namespace of the defined schema.
public void setSchema(XsdSchema schema)
schemaCollection
must be set.public void setSchemaCollection(XsdSchemaCollection schemaCollection)
schema
must be
set.public void setPortTypeName(String portTypeName)
public void setRequestSuffix(String requestSuffix)
public void setResponseSuffix(String responseSuffix)
public void setFaultSuffix(String faultSuffix)
public void setCreateSoap11Binding(boolean createSoap11Binding)
Defaults to true
.
public void setCreateSoap12Binding(boolean createSoap12Binding)
Defaults to false
.
public void setSoapActions(Properties soapActions)
binding operation
names
; values are SOAP Action URIs
.soapActions
- the soappublic void setTransportUri(String transportUri)
public void setLocationUri(String locationUri)
public void setServiceName(String serviceName)
Defaults to the port type name, with the suffix Service
appended to it.
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public Source getSource()
WsdlDefinition
Source
of the definition.getSource
in interface WsdlDefinition
Source
of this WSDL definitionCopyright © 2020 Pivotal Software. All rights reserved.