public final class RespectBindingFeature extends WebServiceFeature
wsdl:binding在JAX-WS运行时。
此功能可以在创建SEI代理的过程中使用,并Dispatch个在客户端实例和Endpoint个在服务器端实例。
此功能不能用于客户端上的Service实例创建。
此功能仅适用于具有关联WSDL的Web服务。 启用此功能需要一个JAX-WS实现检查wsdl:binding一个端点在运行时确保所有wsdl:extensions是有required属性设置为true正在使用的理解,有。
以下描述了此功能对启用或禁用的影响:
wsdl:binding扩展(包括策略)被运行时理解和使用,或由Web服务应用程序明确禁用。 如果存在对应的WebServiceFeature或注释,则Web服务可以禁用特定的扩展。 同样,Web服务客户端可以使用相应的禁用特定扩展WebServiceFeature而创建代理或Dispatch实例。 运行时还必须确保SEI参数/返回值的wsdl:binding 。 启用此功能后,如果WSDL中有必需( wsdl:required="true" ) wsdl:binding扩展,并且它不受JAX-WS运行时支持,并且尚未被Web服务开发人员显式关闭,则该JAX-WS运行时必须执行适当地基于它是在客户端还是服务器上:
WebServiceException不早以上时调用的方法之一,但相比不晚于端点操作的第一次调用。 WebServiceException ,端点必须无法部署 wsdl:binding以及wsdl:binding将被检查的程度。 例如,一个实现可以选择表现为该特征被启用,另一个实现可以仅选择验证SEI的参数/返回类型绑定。 AddressingFeature
| Modifier and Type | Field and Description |
|---|---|
static String |
ID
识别RespectBindingFeature的常量值
|
enabled| Constructor and Description |
|---|
RespectBindingFeature()
创建一个
RespectBindingFeature 。
|
RespectBindingFeature(boolean enabled)
创建一个RespectBindingFeature
|
public static final String ID
public RespectBindingFeature()
RespectBindingFeature 。
创建的实例将被启用。
public RespectBindingFeature(boolean enabled)
enabled - 指定是否启用此功能。
public String getID()
getID在
WebServiceFeature
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.