JAX-WS
v2.1

javax.xml.ws
Annotation Type BindingType


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface BindingType

The BindingType annotation is used to specify the binding to use for a web service endpoint implementation class. As well as specify additional features that may be enabled.

Here is a sample use of the BindingType annotation that specifies use of the SOAP1.1/HTTP binding, it enables both the AddressingFeature and the MTOMFeature and also sets the threshold feature parameter on the MTOMFeature.

  @BindingType(value=SOAPBinding.SOAP11HTTP_BINDING,
            features={
               @Feature(AddressingFeature.ID),
               @Feature(value=MTOMFeature.ID,
                   parameters={@FeatureParameter(name=MTOMFeature.THRESHOLD, value="1000")})
           })
  public class MyWebService { ... }
  

Since:
JAX-WS 2.0

Optional Element Summary
 Feature[] features
          An array of Features to enable/disable on the specified binding.
 java.lang.String value
          A binding identifier (a URI).
 

value

public abstract java.lang.String value
A binding identifier (a URI). If not specified, the default is the SOAP 1.1 / HTTP binding.

See the SOAPBinding and HTTPBinding for the definition of the standard binding identifiers.

See Also:
Binding, SOAPBinding.SOAP11HTTP_BINDING, SOAPBinding.SOAP12HTTP_BINDING, HTTPBinding.HTTP_BINDING
Default:
""

features

public abstract Feature[] features
An array of Features to enable/disable on the specified binding. If not specified, features will be enabled/disabled based on their own rules. Refer to the documentation of the feature to determine when it will be automatically enabled.

See the SOAPBinding for the definition of the standard feature identifiers.

Since:
JAX-WS 2.1
See Also:
RespectBindingFeature, AddressingFeature, MTOMFeature
Default:
{}

JAX-WS
v2.1


Comments to: jsr224-spec-comments@sun.com
More information at: http://java.sun.com/xml/jax-ws

Copyright © 2006 by Sun Microsystems, Inc., 4150 Network Circle,
Santa Clara, California 95054, U.S.A. All Rights Reserved.