Class Soap11Provider
- All Implemented Interfaces:
BindingsProvider,ServicesProvider
BindingsProvider and ServicesProvider interfaces
that are SOAP 1.1 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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default transport URI, which indicates an HTTP transport.static final StringThe prefix of the WSDL SOAP 1.1 namespace.static final StringThe WSDL SOAP 1.1 namespace.Fields inherited from class org.springframework.ws.wsdl.wsdl11.provider.DefaultConcretePartProvider
logger -
Constructor Summary
Constructors -
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 voidpopulateBinding(javax.wsdl.Definition definition, javax.wsdl.Binding binding) Called after theBindinghas been created, but before any sub-elements are added.protected voidpopulateBindingFault(javax.wsdl.Definition definition, javax.wsdl.BindingFault bindingFault, javax.wsdl.Fault fault) Called after theBindingFaulthas been created.protected voidpopulateBindingInput(javax.wsdl.Definition definition, javax.wsdl.BindingInput bindingInput, javax.wsdl.Input input) Called after theBindingInputhas been created.protected voidpopulateBindingOperation(javax.wsdl.Definition definition, javax.wsdl.BindingOperation bindingOperation) Called after theBindingOperationhas been created, but before any sub-elements are added.protected voidpopulateBindingOutput(javax.wsdl.Definition definition, javax.wsdl.BindingOutput bindingOutput, javax.wsdl.Output output) Called after theBindingInputhas been created.protected voidpopulatePort(javax.wsdl.Definition definition, javax.wsdl.Port port) Called after thePorthas been created, but before any sub-elements are added.protected voidpopulateSoapAddress(javax.wsdl.extensions.soap.SOAPAddress soapAddress) Called after theSOAPAddresshas been created.protected voidpopulateSoapBinding(javax.wsdl.extensions.soap.SOAPBinding soapBinding, javax.wsdl.Binding binding) Called after theSOAPBindinghas been created.protected voidpopulateSoapBody(javax.wsdl.extensions.soap.SOAPBody soapBody) Called after theSOAPBodyhas been created.protected voidpopulateSoapFault(javax.wsdl.BindingFault bindingFault, javax.wsdl.extensions.soap.SOAPFault soapFault) Called after theSOAPFaulthas been created.protected voidpopulateSoapOperation(javax.wsdl.extensions.soap.SOAPOperation soapOperation, javax.wsdl.BindingOperation bindingOperation) Called after theSOAPOperationhas been created.voidsetLocationUri(String locationUri) Sets the value used for the SOAP Address location attribute value.voidsetSoapActions(Properties soapActions) Sets the SOAP Actions for this binding.voidsetTransportUri(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_11_NAMESPACE_PREFIX
The prefix of the WSDL SOAP 1.1 namespace.- See Also:
-
SOAP_11_NAMESPACE_URI
The WSDL SOAP 1.1 namespace.- See Also:
-
-
Constructor Details
-
Soap11Provider
public Soap11Provider()Constructs a new version of theSoap11Provider.Sets the
binding suffixtoSoap11.
-
-
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 theBindinghas 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(Definition, Binding), adds the SOAP 1.1 namespace, creates aSOAPBinding, and callspopulateSoapBinding(SOAPBinding, Binding)sets the binding name to the port type name with thesuffixappended to it.- Overrides:
populateBindingin classDefaultConcretePartProvider- Parameters:
definition- the WSDL4JDefinitionbinding- the WSDL4JBinding- Throws:
javax.wsdl.WSDLException
-
populateSoapBinding
protected void populateSoapBinding(javax.wsdl.extensions.soap.SOAPBinding soapBinding, javax.wsdl.Binding binding) throws javax.wsdl.WSDLException Called after theSOAPBindinghas been created.Default implementation sets the binding style to
"document", and set the transport URI to thetransportUriproperty 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 theBindingFaulthas been created. Subclasses can override this method to define the name, or add extensions to it.Default implementation calls
DefaultConcretePartProvider.populateBindingFault(Definition, BindingFault, Fault), creates aSOAPFault, and callspopulateSoapFault(BindingFault, SOAPFault).- Overrides:
populateBindingFaultin classDefaultConcretePartProvider- Parameters:
definition- the WSDL4JDefinitionbindingFault- the WSDL4JBindingFaultfault- the corresponding WSDL4JFault@throws WSDLException in case of errors- Throws:
javax.wsdl.WSDLException
-
populateSoapFault
protected void populateSoapFault(javax.wsdl.BindingFault bindingFault, javax.wsdl.extensions.soap.SOAPFault soapFault) throws javax.wsdl.WSDLException Called after theSOAPFaulthas 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 WSDL4JBindingFaultsoapFault- 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 theBindingInputhas been created. Subclasses can implement this method to define the name, or add extensions to it.Default implementation calls
DefaultConcretePartProvider.populateBindingInput(Definition, javax.wsdl.BindingInput, javax.wsdl.Input), creates aSOAPBody, and callspopulateSoapBody(SOAPBody).- Overrides:
populateBindingInputin classDefaultConcretePartProvider- Parameters:
definition- the WSDL4JDefinitionbindingInput- the WSDL4JBindingInputinput- the corresponding WSDL4JInput@throws WSDLException in case of errors- Throws:
javax.wsdl.WSDLException
-
populateSoapBody
protected void populateSoapBody(javax.wsdl.extensions.soap.SOAPBody soapBody) throws javax.wsdl.WSDLException Called after theSOAPBodyhas 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 theBindingOperationhas 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(Definition, BindingOperation), creates aSOAPOperation, and callspopulateSoapOperation(javax.wsdl.extensions.soap.SOAPOperation, javax.wsdl.BindingOperation)sets the name of the binding operation to the name of the operation.- Overrides:
populateBindingOperationin classDefaultConcretePartProvider- Parameters:
definition- the WSDL4JDefinitionbindingOperation- the WSDL4JBindingOperation- Throws:
javax.wsdl.WSDLException- in case of errors
-
populateSoapOperation
protected void populateSoapOperation(javax.wsdl.extensions.soap.SOAPOperation soapOperation, javax.wsdl.BindingOperation bindingOperation) throws javax.wsdl.WSDLException Called after theSOAPOperationhas been created.Default implementation sets
SOAPActionto the correspondingsoapActionsproperty, and defaults to "".- Parameters:
soapOperation- the WSDL4JSOAPOperationbindingOperation- 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 theBindingInputhas been created. Subclasses can implement this method to define the name, or add extensions to it.Default implementation calls
DefaultConcretePartProvider.populateBindingOutput(Definition, BindingOutput, Output), creates aSOAPBody, and callspopulateSoapBody(SOAPBody).- Overrides:
populateBindingOutputin classDefaultConcretePartProvider- Parameters:
definition- the WSDL4JDefinitionbindingOutput- the WSDL4JBindingOutputoutput- 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 thePorthas 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(SOAPAddress).- Overrides:
populatePortin classDefaultConcretePartProvider- Parameters:
port- the WSDL4JPortdefinition- the WSDL4JDefinition- Throws:
javax.wsdl.WSDLException- in case of errors
-
populateSoapAddress
protected void populateSoapAddress(javax.wsdl.extensions.soap.SOAPAddress soapAddress) throws javax.wsdl.WSDLException Called after theSOAPAddresshas 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:
-
SOAPAddress.setLocationURI(String)setLocationUri(String)
-