Top Description Fields Methods
javax.xml.ws.soap

public Interface SOAPBinding

extends Binding
Imports
java.util.Set, javax.xml.ws.Binding, javax.xml.soap.SOAPFactory, .MessageFactory

The SOAPBinding interface is an abstraction for the SOAP binding.
Since
1.6, JAX-WS 2.0

Field Summary

Modifier and TypeField and Description
public static final String
SOAP11HTTP_BINDING

A constant representing the identity of the SOAP 1.1 over HTTP binding.

public static final String
SOAP11HTTP_MTOM_BINDING

A constant representing the identity of the SOAP 1.1 over HTTP binding with MTOM enabled by default.

public static final String
SOAP12HTTP_BINDING

A constant representing the identity of the SOAP 1.2 over HTTP binding.

public static final String
SOAP12HTTP_MTOM_BINDING

A constant representing the identity of the SOAP 1.2 over HTTP binding with MTOM enabled by default.

Method Summary

Modifier and TypeMethod and Description
public MessageFactory

Returns:

MessageFactory instance used by this SOAP binding.
getMessageFactory
()

Gets the SAAJ MessageFactory instance used by this SOAP binding.

public Set<String>

Returns:

Set<String> The set of roles played by the binding instance.
getRoles
()

Gets the roles played by the SOAP binding instance.

public SOAPFactory

Returns:

SOAPFactory instance used by this SOAP binding.
getSOAPFactory
()

Gets the SAAJ SOAPFactory instance used by this SOAP binding.

public boolean

Returns:

true if and only if the use of MTOM is enabled.
isMTOMEnabled
()

Returns true if the use of MTOM is enabled.

public void
setMTOMEnabled(boolean
A boolean specifying whether the use of MTOM should be enabled or disabled.
flag
)

Enables or disables use of MTOM.

public void
setRoles(Set<String>
The set of roles played by the binding instance.
roles
)

Sets the roles played by the SOAP binding instance.

Inherited from javax.xml.ws.Binding:
getBindingIDgetHandlerChainsetHandlerChain

Field Detail

SOAP11HTTP_BINDINGback to summary
public static final String SOAP11HTTP_BINDING

A constant representing the identity of the SOAP 1.1 over HTTP binding.

SOAP11HTTP_MTOM_BINDINGback to summary
public static final String SOAP11HTTP_MTOM_BINDING

A constant representing the identity of the SOAP 1.1 over HTTP binding with MTOM enabled by default.

SOAP12HTTP_BINDINGback to summary
public static final String SOAP12HTTP_BINDING

A constant representing the identity of the SOAP 1.2 over HTTP binding.

SOAP12HTTP_MTOM_BINDINGback to summary
public static final String SOAP12HTTP_MTOM_BINDING

A constant representing the identity of the SOAP 1.2 over HTTP binding with MTOM enabled by default.

Method Detail

getMessageFactoryback to summary
public MessageFactory getMessageFactory()

Gets the SAAJ MessageFactory instance used by this SOAP binding.

Returns:MessageFactory

MessageFactory instance used by this SOAP binding.

getRolesback to summary
public Set<String> getRoles()

Gets the roles played by the SOAP binding instance.

Returns:Set<String>

Set<String> The set of roles played by the binding instance.

getSOAPFactoryback to summary
public SOAPFactory getSOAPFactory()

Gets the SAAJ SOAPFactory instance used by this SOAP binding.

Returns:SOAPFactory

SOAPFactory instance used by this SOAP binding.

isMTOMEnabledback to summary
public boolean isMTOMEnabled()

Returns true if the use of MTOM is enabled.

Returns:boolean

true if and only if the use of MTOM is enabled.

setMTOMEnabledback to summary
public void setMTOMEnabled(boolean flag)

Enables or disables use of MTOM.

Parameters
flag:boolean

A boolean specifying whether the use of MTOM should be enabled or disabled.

Exceptions
WebServiceException:
If the specified setting is not supported by this binding instance.
setRolesback to summary
public void setRoles(Set<String> roles)

Sets the roles played by the SOAP binding instance.

Parameters
roles:Set<String>

The set of roles played by the binding instance.

Exceptions
WebServiceException:
On an error in the configuration of the list of roles.