SOAPBinding (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.ws.soap Interface SOAPBinding

所有父接口:
Binding

public interface SOAPBinding
extends Binding

The SOAPBinding interface is an abstraction for the SOAP binding.

从以下版本开始:
JAX-WS 2.0

字段摘要
static String SOAP11HTTP_BINDING
          A constant representing the identity of the SOAP 1.1 over HTTP binding.
static String SOAP11HTTP_MTOM_BINDING
          A constant representing the identity of the SOAP 1.1 over HTTP binding with MTOM enabled by default.
static String SOAP12HTTP_BINDING
          A constant representing the identity of the SOAP 1.2 over HTTP binding.
static String SOAP12HTTP_MTOM_BINDING
          A constant representing the identity of the SOAP 1.2 over HTTP binding with MTOM enabled by default.
 
方法摘要
 MessageFactory getMessageFactory()
          Gets the SAAJ MessageFactory instance used by this SOAP binding.
 Set<String> getRoles()
          Gets the roles played by the SOAP binding instance.
 SOAPFactory getSOAPFactory()
          Gets the SAAJ SOAPFactory instance used by this SOAP binding.
 boolean isMTOMEnabled()
          Returns true if the use of MTOM is enabled.
 void setMTOMEnabled(boolean flag)
          Enables or disables use of MTOM.
 void setRoles(Set<String> roles)
          Sets the roles played by the SOAP binding instance.
 
Methods inherited from interface javax.xml.ws.Binding
getHandlerChain, setHandlerChain
 

字段详细信息

SOAP11HTTP_BINDING

static final String SOAP11HTTP_BINDING
A constant representing the identity of the SOAP 1.1 over HTTP binding.

另请参见:
常量字段


SOAP12HTTP_BINDING

static final String SOAP12HTTP_BINDING
A constant representing the identity of the SOAP 1.2 over HTTP binding.

另请参见:
常量字段


SOAP11HTTP_MTOM_BINDING

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_MTOM_BINDING

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

另请参见:
常量字段

方法详细信息

getRoles

Set<String> getRoles()
Gets the roles played by the SOAP binding instance.

返回:
Set The set of roles played by the binding instance.

setRoles

void setRoles(Set<String> roles)
Sets the roles played by the SOAP binding instance.

参数:
roles - The set of roles played by the binding instance.
抛出异常:
WebServiceException - On an error in the configuration of the list of roles.

isMTOMEnabled

boolean isMTOMEnabled()
Returns true if the use of MTOM is enabled.

返回:
true if and only if the use of MTOM is enabled.

setMTOMEnabled

void setMTOMEnabled(boolean flag)
Enables or disables use of MTOM.

参数:
flag - A boolean specifying whether the use of MTOM should be enabled or disabled.
抛出异常:
WebServiceException - If the specified setting is not supported by this binding instance.

getSOAPFactory

SOAPFactory getSOAPFactory()
Gets the SAAJ SOAPFactory instance used by this SOAP binding.

返回:
SOAPFactory instance used by this SOAP binding.

getMessageFactory

MessageFactory getMessageFactory()
Gets the SAAJ MessageFactory instance used by this SOAP binding.

返回:
MessageFactory instance used by this SOAP binding.

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.