Class Soap12Provider
- All Implemented Interfaces:
BindingsProvider
,ServicesProvider
BindingsProvider
and ServicesProvider
interfaces that are SOAP 1.2 specific.
By setting the soapActions
property, the SOAP Actions defined in the
resulting WSDL can be set. Additionaly, the transport uri can be changed from the default HTTP transport by using the
transportUri
property.
- Since:
- 1.5.0
- Author:
- Arjen Poutsma
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The default transport URI, which indicates an HTTP transport.static final String
The prefix of the WSDL SOAP 1.2 namespace.static final String
The WSDL SOAP 1.1 namespace.Fields inherited from class org.springframework.ws.wsdl.wsdl11.provider.DefaultConcretePartProvider
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value used for the SOAP Address location attribute value.Returns the SOAP Actions for this binding.Returns the value used for the binding transport attribute value.protected void
populateBinding
(javax.wsdl.Definition definition, javax.wsdl.Binding binding) Called after theBinding
has been created, but before any sub-elements are added.protected void
populateBindingFault
(javax.wsdl.Definition definition, javax.wsdl.BindingFault bindingFault, javax.wsdl.Fault fault) Called after theBindingFault
has been created.protected void
populateBindingInput
(javax.wsdl.Definition definition, javax.wsdl.BindingInput bindingInput, javax.wsdl.Input input) Called after theBindingInput
has been created.protected void
populateBindingOperation
(javax.wsdl.Definition definition, javax.wsdl.BindingOperation bindingOperation) Called after theBindingOperation
has been created, but before any sub-elements are added.protected void
populateBindingOutput
(javax.wsdl.Definition definition, javax.wsdl.BindingOutput bindingOutput, javax.wsdl.Output output) Called after theBindingInput
has been created.protected void
populatePort
(javax.wsdl.Definition definition, javax.wsdl.Port port) Called after thePort
has been created, but before any sub-elements are added.protected void
populateSoapAddress
(javax.wsdl.extensions.soap12.SOAP12Address soapAddress) Called after theSOAP12Address
has been created.protected void
populateSoapBinding
(javax.wsdl.extensions.soap12.SOAP12Binding soapBinding, javax.wsdl.Binding binding) Called after theSOAPBinding
has been created.protected void
populateSoapBody
(javax.wsdl.extensions.soap12.SOAP12Body soapBody) Called after theSOAPBody
has been created.protected void
populateSoapFault
(javax.wsdl.BindingFault bindingFault, javax.wsdl.extensions.soap12.SOAP12Fault soapFault) Called after theSOAPFault
has been created.protected void
populateSoapOperation
(javax.wsdl.extensions.soap12.SOAP12Operation soapOperation, javax.wsdl.BindingOperation bindingOperation) Called after theSOAPOperation
has been created.void
setLocationUri
(String locationUri) Sets the value used for the SOAP Address location attribute value.void
setSoapActions
(Properties soapActions) Sets the SOAP Actions for this binding.void
setTransportUri
(String transportUri) Sets the value used for the binding transport attribute value.Methods inherited from class org.springframework.ws.wsdl.wsdl11.provider.DefaultConcretePartProvider
addBindings, addServices, getBindingSuffix, getServiceName, populateService, setBindingSuffix, setServiceName
-
Field Details
-
DEFAULT_TRANSPORT_URI
The default transport URI, which indicates an HTTP transport.- See Also:
-
SOAP_12_NAMESPACE_PREFIX
The prefix of the WSDL SOAP 1.2 namespace.- See Also:
-
SOAP_12_NAMESPACE_URI
The WSDL SOAP 1.1 namespace.- See Also:
-
-
Constructor Details
-
Soap12Provider
public Soap12Provider()Constructs a new version of theSoap12Provider
.Sets the
binding suffix
toSoap12
.
-
-
Method Details
-
getSoapActions
Returns the SOAP Actions for this binding. Keys arebinding operation names
; values areSOAP Action URIs
.- Returns:
- the soap actions
-
setSoapActions
Sets the SOAP Actions for this binding. Keys arebinding operation names
; values areSOAP Action URIs
.- Parameters:
soapActions
- the soap
-
getTransportUri
Returns the value used for the binding transport attribute value. Defaults toDEFAULT_TRANSPORT_URI
.- Returns:
- the binding transport value
-
setTransportUri
Sets the value used for the binding transport attribute value. Defaults toDEFAULT_TRANSPORT_URI
.- Parameters:
transportUri
- the binding transport value
-
getLocationUri
Returns the value used for the SOAP Address location attribute value. -
setLocationUri
Sets the value used for the SOAP Address location attribute value. -
populateBinding
protected void populateBinding(javax.wsdl.Definition definition, javax.wsdl.Binding binding) throws javax.wsdl.WSDLException Called after theBinding
has been created, but before any sub-elements are added. Subclasses can override this method to define the binding name, or add extensions to it.Default implementation calls
DefaultConcretePartProvider.populateBinding(javax.wsdl.Definition, javax.wsdl.Binding)
, adds the SOAP 1.1 namespace, creates aSOAPBinding
, and callspopulateSoapBinding(javax.wsdl.extensions.soap12.SOAP12Binding, javax.wsdl.Binding)
sets the binding name to the port type name with thesuffix
appended to it.- Overrides:
populateBinding
in classDefaultConcretePartProvider
- Parameters:
definition
- the WSDL4JDefinition
binding
- the WSDL4JBinding
- Throws:
javax.wsdl.WSDLException
-
populateSoapBinding
protected void populateSoapBinding(javax.wsdl.extensions.soap12.SOAP12Binding soapBinding, javax.wsdl.Binding binding) throws javax.wsdl.WSDLException Called after theSOAPBinding
has been created.Default implementation sets the binding style to
"document"
, and set the transport URI to thetransportUri
property value. Subclasses can override this behavior.- Parameters:
soapBinding
- the WSDL4JSOAPBinding
- Throws:
javax.wsdl.WSDLException
- in case of errors- See Also:
-
SOAPBinding.setStyle(String)
SOAPBinding.setTransportURI(String)
setTransportUri(String)
DEFAULT_TRANSPORT_URI
-
populateBindingFault
protected void populateBindingFault(javax.wsdl.Definition definition, javax.wsdl.BindingFault bindingFault, javax.wsdl.Fault fault) throws javax.wsdl.WSDLException Called after theBindingFault
has been created. Subclasses can override this method to define the name, or add extensions to it.Default implementation calls
DefaultConcretePartProvider.populateBindingFault(javax.wsdl.Definition, javax.wsdl.BindingFault, javax.wsdl.Fault)
, creates aSOAPFault
, and callspopulateSoapFault(javax.wsdl.BindingFault, javax.wsdl.extensions.soap12.SOAP12Fault)
.- Overrides:
populateBindingFault
in classDefaultConcretePartProvider
- Parameters:
definition
- the WSDL4JDefinition
bindingFault
- the WSDL4JBindingFault
fault
- the corresponding WSDL4JFault
@throws WSDLException in case of errors- Throws:
javax.wsdl.WSDLException
-
populateSoapFault
protected void populateSoapFault(javax.wsdl.BindingFault bindingFault, javax.wsdl.extensions.soap12.SOAP12Fault soapFault) throws javax.wsdl.WSDLException Called after theSOAPFault
has been created.Default implementation sets the use style to
"literal"
, and sets the name equal to the binding fault. Subclasses can override this behavior.- Parameters:
bindingFault
- the WSDL4JBindingFault
soapFault
- the WSDL4JSOAPFault
- Throws:
javax.wsdl.WSDLException
- in case of errors- See Also:
-
SOAPFault.setUse(String)
-
populateBindingInput
protected void populateBindingInput(javax.wsdl.Definition definition, javax.wsdl.BindingInput bindingInput, javax.wsdl.Input input) throws javax.wsdl.WSDLException Called after theBindingInput
has been created. Subclasses can implement this method to define the name, or add extensions to it.Default implementation calls
DefaultConcretePartProvider.populateBindingInput(javax.wsdl.Definition, javax.wsdl.BindingInput, javax.wsdl.Input)
, creates aSOAPBody
, and callspopulateSoapBody(javax.wsdl.extensions.soap12.SOAP12Body)
. 2- Overrides:
populateBindingInput
in classDefaultConcretePartProvider
- Parameters:
definition
- the WSDL4JDefinition
bindingInput
- the WSDL4JBindingInput
input
- the corresponding WSDL4JInput
@throws WSDLException in case of errors- Throws:
javax.wsdl.WSDLException
-
populateSoapBody
protected void populateSoapBody(javax.wsdl.extensions.soap12.SOAP12Body soapBody) throws javax.wsdl.WSDLException Called after theSOAPBody
has been created.Default implementation sets the use style to
"literal"
. Subclasses can override this behavior.- Parameters:
soapBody
- the WSDL4JSOAPBody
- Throws:
javax.wsdl.WSDLException
- in case of errors- See Also:
-
SOAPBody.setUse(String)
-
populateBindingOperation
protected void populateBindingOperation(javax.wsdl.Definition definition, javax.wsdl.BindingOperation bindingOperation) throws javax.wsdl.WSDLException Called after theBindingOperation
has been created, but before any sub-elements are added. Subclasses can implement this method to define the binding name, or add extensions to it.Default implementation calls
DefaultConcretePartProvider.populateBindingOperation(javax.wsdl.Definition, javax.wsdl.BindingOperation)
, creates aSOAPOperation
, and callspopulateSoapOperation(javax.wsdl.extensions.soap12.SOAP12Operation, javax.wsdl.BindingOperation)
sets the name of the binding operation to the name of the operation.- Overrides:
populateBindingOperation
in classDefaultConcretePartProvider
- Parameters:
definition
- the WSDL4JDefinition
bindingOperation
- the WSDL4JBindingOperation
- Throws:
javax.wsdl.WSDLException
- in case of errors
-
populateSoapOperation
protected void populateSoapOperation(javax.wsdl.extensions.soap12.SOAP12Operation soapOperation, javax.wsdl.BindingOperation bindingOperation) throws javax.wsdl.WSDLException Called after theSOAPOperation
has been created.Default implementation sets
SOAPAction
to the correspondingsoapActions
property, and defaults to "".- Parameters:
soapOperation
- the WSDL4JSOAPOperation
bindingOperation
- the WSDL4JBindingOperation
- Throws:
javax.wsdl.WSDLException
- in case of errors- See Also:
-
SOAPOperation.setSoapActionURI(String)
setSoapActions(java.util.Properties)
-
populateBindingOutput
protected void populateBindingOutput(javax.wsdl.Definition definition, javax.wsdl.BindingOutput bindingOutput, javax.wsdl.Output output) throws javax.wsdl.WSDLException Called after theBindingInput
has been created. Subclasses can implement this method to define the name, or add extensions to it.Default implementation calls
DefaultConcretePartProvider.populateBindingOutput(javax.wsdl.Definition, javax.wsdl.BindingOutput, javax.wsdl.Output)
, creates aSOAPBody
, and callspopulateSoapBody(javax.wsdl.extensions.soap12.SOAP12Body)
.- Overrides:
populateBindingOutput
in classDefaultConcretePartProvider
- Parameters:
definition
- the WSDL4JDefinition
bindingOutput
- the WSDL4JBindingOutput
output
- the corresponding WSDL4JOutput
@throws WSDLException in case of errors- Throws:
javax.wsdl.WSDLException
-
populatePort
protected void populatePort(javax.wsdl.Definition definition, javax.wsdl.Port port) throws javax.wsdl.WSDLException Called after thePort
has been created, but before any sub-elements are added. Subclasses can implement this method to define the port name, or add extensions to it.Default implementation calls
DefaultConcretePartProvider.populatePort(javax.wsdl.Definition,javax.wsdl.Port)
, creates aSOAPAddress
, and callspopulateSoapAddress(SOAP12Address)
.- Overrides:
populatePort
in classDefaultConcretePartProvider
- Parameters:
port
- the WSDL4JPort
definition
- the WSDL4JDefinition
- Throws:
javax.wsdl.WSDLException
- in case of errors
-
populateSoapAddress
protected void populateSoapAddress(javax.wsdl.extensions.soap12.SOAP12Address soapAddress) throws javax.wsdl.WSDLException Called after theSOAP12Address
has been created. Default implementation sets the location URI to the value set on this builder. Subclasses can override this behavior.- Parameters:
soapAddress
- the WSDL4JSOAPAddress
- Throws:
javax.wsdl.WSDLException
- in case of errors- See Also:
-
SOAP12Address.setLocationURI(String)
setLocationUri(String)
-