public class Soap11Provider extends DefaultConcretePartProvider
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.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TRANSPORT_URI
The default transport URI, which indicates an HTTP transport.
|
static String |
SOAP_11_NAMESPACE_PREFIX
The prefix of the WSDL SOAP 1.1 namespace.
|
static String |
SOAP_11_NAMESPACE_URI
The WSDL SOAP 1.1 namespace.
|
logger
Constructor and Description |
---|
Soap11Provider()
Constructs a new version of the
Soap11Provider . |
Modifier and Type | Method and Description |
---|---|
String |
getLocationUri()
Returns the value used for the SOAP Address location attribute value.
|
Properties |
getSoapActions()
Returns the SOAP Actions for this binding.
|
String |
getTransportUri()
Returns the value used for the binding transport attribute value.
|
protected void |
populateBinding(javax.wsdl.Definition definition,
javax.wsdl.Binding binding)
Called after the
Binding 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 the
BindingFault has been created. |
protected void |
populateBindingInput(javax.wsdl.Definition definition,
javax.wsdl.BindingInput bindingInput,
javax.wsdl.Input input)
Called after the
BindingInput has been created. |
protected void |
populateBindingOperation(javax.wsdl.Definition definition,
javax.wsdl.BindingOperation bindingOperation)
Called after the
BindingOperation 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 the
BindingInput has been created. |
protected void |
populatePort(javax.wsdl.Definition definition,
javax.wsdl.Port port)
Called after the
Port has been created, but before any sub-elements are added. |
protected void |
populateSoapAddress(javax.wsdl.extensions.soap.SOAPAddress soapAddress)
Called after the
SOAPAddress has been created. |
protected void |
populateSoapBinding(javax.wsdl.extensions.soap.SOAPBinding soapBinding,
javax.wsdl.Binding binding)
Called after the
SOAPBinding has been created. |
protected void |
populateSoapBody(javax.wsdl.extensions.soap.SOAPBody soapBody)
Called after the
SOAPBody has been created. |
protected void |
populateSoapFault(javax.wsdl.BindingFault bindingFault,
javax.wsdl.extensions.soap.SOAPFault soapFault)
Called after the
SOAPFault has been created. |
protected void |
populateSoapOperation(javax.wsdl.extensions.soap.SOAPOperation soapOperation,
javax.wsdl.BindingOperation bindingOperation)
Called after the
SOAPOperation 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.
|
addBindings, addServices, getBindingSuffix, getServiceName, populateService, setBindingSuffix, setServiceName
public static final String DEFAULT_TRANSPORT_URI
public static final String SOAP_11_NAMESPACE_PREFIX
public static final String SOAP_11_NAMESPACE_URI
public Soap11Provider()
Soap11Provider
.
Sets the binding suffix
to Soap11
.
public Properties getSoapActions()
binding operation names
;
values are SOAP Action URIs
.public void setSoapActions(Properties soapActions)
binding operation names
;
values are SOAP Action URIs
.soapActions
- the soappublic String getTransportUri()
DEFAULT_TRANSPORT_URI
.public void setTransportUri(String transportUri)
DEFAULT_TRANSPORT_URI
.transportUri
- the binding transport valuepublic String getLocationUri()
public void setLocationUri(String locationUri)
protected void populateBinding(javax.wsdl.Definition definition, javax.wsdl.Binding binding) throws javax.wsdl.WSDLException
Binding
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(Definition, Binding)
, adds the
SOAP 1.1 namespace, creates a SOAPBinding
, and calls populateSoapBinding(SOAPBinding, Binding)
sets the binding name to the port type name with the suffix
appended to it.
populateBinding
in class DefaultConcretePartProvider
definition
- the WSDL4J Definition
binding
- the WSDL4J Binding
javax.wsdl.WSDLException
protected void populateSoapBinding(javax.wsdl.extensions.soap.SOAPBinding soapBinding, javax.wsdl.Binding binding) throws javax.wsdl.WSDLException
SOAPBinding
has been created.
Default implementation sets the binding style to "document"
, and set the transport URI to the transportUri
property value. Subclasses can override this behavior.
soapBinding
- the WSDL4J SOAPBinding
javax.wsdl.WSDLException
- in case of errorsSOAPBinding.setStyle(String)
,
SOAPBinding.setTransportURI(String)
,
setTransportUri(String)
,
DEFAULT_TRANSPORT_URI
protected void populateBindingFault(javax.wsdl.Definition definition, javax.wsdl.BindingFault bindingFault, javax.wsdl.Fault fault) throws javax.wsdl.WSDLException
BindingFault
has 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 a SOAPFault
, and calls populateSoapFault(BindingFault, SOAPFault)
.
populateBindingFault
in class DefaultConcretePartProvider
definition
- the WSDL4J Definition
bindingFault
- the WSDL4J BindingFault
fault
- the corresponding WSDL4J Fault
@throws WSDLException in case of errorsjavax.wsdl.WSDLException
protected void populateSoapFault(javax.wsdl.BindingFault bindingFault, javax.wsdl.extensions.soap.SOAPFault soapFault) throws javax.wsdl.WSDLException
SOAPFault
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.
bindingFault
- the WSDL4J BindingFault
soapFault
- the WSDL4J SOAPFault
javax.wsdl.WSDLException
- in case of errorsSOAPFault.setUse(String)
protected void populateBindingInput(javax.wsdl.Definition definition, javax.wsdl.BindingInput bindingInput, javax.wsdl.Input input) throws javax.wsdl.WSDLException
BindingInput
has 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 a SOAPBody
, and calls populateSoapBody(SOAPBody)
.
populateBindingInput
in class DefaultConcretePartProvider
definition
- the WSDL4J Definition
bindingInput
- the WSDL4J BindingInput
input
- the corresponding WSDL4J Input
@throws WSDLException in case of errorsjavax.wsdl.WSDLException
protected void populateSoapBody(javax.wsdl.extensions.soap.SOAPBody soapBody) throws javax.wsdl.WSDLException
SOAPBody
has been created.
Default implementation sets the use style to "literal"
. Subclasses can override this behavior.
soapBody
- the WSDL4J SOAPBody
javax.wsdl.WSDLException
- in case of errorsSOAPBody.setUse(String)
protected void populateBindingOperation(javax.wsdl.Definition definition, javax.wsdl.BindingOperation bindingOperation) throws javax.wsdl.WSDLException
BindingOperation
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(Definition,
BindingOperation)
, creates a SOAPOperation
, and calls populateSoapOperation(javax.wsdl.extensions.soap.SOAPOperation, javax.wsdl.BindingOperation)
sets the name of
the binding operation to the name of the operation.
populateBindingOperation
in class DefaultConcretePartProvider
definition
- the WSDL4J Definition
bindingOperation
- the WSDL4J BindingOperation
javax.wsdl.WSDLException
- in case of errorsprotected void populateSoapOperation(javax.wsdl.extensions.soap.SOAPOperation soapOperation, javax.wsdl.BindingOperation bindingOperation) throws javax.wsdl.WSDLException
SOAPOperation
has been created.
Default implementation sets SOAPAction
to the corresponding soapActions
property, and defaults to "".
soapOperation
- the WSDL4J SOAPOperation
bindingOperation
- the WSDL4J BindingOperation
javax.wsdl.WSDLException
- in case of errorsSOAPOperation.setSoapActionURI(String)
,
setSoapActions(java.util.Properties)
protected void populateBindingOutput(javax.wsdl.Definition definition, javax.wsdl.BindingOutput bindingOutput, javax.wsdl.Output output) throws javax.wsdl.WSDLException
BindingInput
has 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 a SOAPBody
, and calls populateSoapBody(SOAPBody)
.
populateBindingOutput
in class DefaultConcretePartProvider
definition
- the WSDL4J Definition
bindingOutput
- the WSDL4J BindingOutput
output
- the corresponding WSDL4J Output
@throws WSDLException in case of errorsjavax.wsdl.WSDLException
protected void populatePort(javax.wsdl.Definition definition, javax.wsdl.Port port) throws javax.wsdl.WSDLException
Port
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 a SOAPAddress
, and calls populateSoapAddress(SOAPAddress)
.
populatePort
in class DefaultConcretePartProvider
port
- the WSDL4J Port
definition
- the WSDL4J Definition
javax.wsdl.WSDLException
- in case of errorsprotected void populateSoapAddress(javax.wsdl.extensions.soap.SOAPAddress soapAddress) throws javax.wsdl.WSDLException
SOAPAddress
has been created. Default implementation sets the location URI to the value
set on this builder. Subclasses can override this behavior.soapAddress
- the WSDL4J SOAPAddress
javax.wsdl.WSDLException
- in case of errorsSOAPAddress.setLocationURI(String)
,
setLocationUri(String)
Copyright © 2020 Pivotal Software. All rights reserved.