|
JAX-WS v2.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@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 { ... }
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). |
public abstract java.lang.String value
See the SOAPBinding
and HTTPBinding
for the definition of the standard binding identifiers.
Binding
,
SOAPBinding.SOAP11HTTP_BINDING
,
SOAPBinding.SOAP12HTTP_BINDING
,
HTTPBinding.HTTP_BINDING
public abstract Feature[] features
See the SOAPBinding
for the definition of the standard feature identifiers.
RespectBindingFeature
,
AddressingFeature
,
MTOMFeature
|
JAX-WS v2.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
Copyright © 2006 by Sun Microsystems, Inc., 4150 Network Circle,
Santa Clara, California 95054, U.S.A. All Rights Reserved.