@Target(value={TYPE,METHOD,字段}) @Retention(value=RUNTIME) @Documented @WebServiceFeatureAnnotation(id="http://www.w3.org/2005/08/addressing/module", bean=AddressingFeature.class) public @interface Addressing
 该注释必须仅在结合使用与WebService , WebServiceProvider和WebServiceRef注释。 当与javax.jws.WebService注释一起使用时,此注释必须仅在服务端点实现类上使用。 当与WebServiceRef注释一起使用时,此注释必须仅在创建代理实例时使用。 注入的SEI代理和端点必须符合Addressing注释的值。 
 此注释的行为由相应的功能AddressingFeature定义。 
| Modifier and Type | Optional Element and Description | 
|---|---|
| boolean | enabled
              指定是否启用或禁用此功能。 
             | 
| boolean | required
              如果启用寻址,则此属性确定端点是否需要WS-Addressing。 
             | 
| AddressingFeature.Responses | responses
              如果启用寻址,则此属性确定端点是否需要使用匿名响应或非匿名响应或全部。 
             | 
public abstract boolean enabled
public abstract boolean required
public abstract AddressingFeature.Responses responses
 AddressingFeature.Responses.ALL支持所有响应类型,这是默认值。 
 AddressingFeature.Responses.ANONYMOUS要求仅使用匿名响应。 这将导致在生成的WSDL中的3.1.2 AnonymousResponses Assertion中指定的wsam:AnonymousResponses嵌套断言。 
 AddressingFeature.Responses.NON_ANONYMOUS要求仅使用非匿名响应。 这将导致在生成的WSDL中的3.1.3 NonAnonymousResponses Assertion中指定的wsam:NonAnonymousResponses嵌套断言。 
 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.