The @DataBinding annotation is defined by the
org.apache.cxf.annotations.DataBinding interface. It is
placed on the SEI.
This annotation is used to associate a data binding with the SEI, replacing the
default JAXB data binding. The value of the @DataBinding
annotation must be the class that provides the data binding,
.ClassName.class
The following data bindings are currently supported by Fuse Services Framework:
org.apache.cxf.jaxb.JAXBDataBinding(Default) The standard JAXB data binding.
org.apache.cxf.sdo.SDODataBindingThe Service Data Objects (SDO) data binding is based on the Apache Tuscany SDO implementation. If you want to use this data binding in the context of a Maven build, you need to add a dependency on the
cxf-rt-databinding-sdoartifact.org.apache.cxf.aegis.databinding.AegisDatabindingIf you want to use this data binding in the context of a Maven build, you need to add a dependency on the
cxf-rt-databinding-aegisartifact.org.apache.cxf.xmlbeans.XmlBeansDataBindingIf you want to use this data binding in the context of a Maven build, you need to add a dependency on the
cxf-rt-databinding-xmlbeansartifact.org.apache.cxf.databinding.source.SourceDataBindingThis data binding belongs to the Apache CXF core.
org.apache.cxf.databinding.stax.StaxDataBindingThis data binding belongs to the Apache CXF core.
Example 1.12 shows how to associate the SDO binding
with the HelloWorld SEI
Example 1.12. Setting the data binding
@WebService @DataBinding(org.apache.cxf.sdo.SDODataBinding.class) public interface HelloWorld { String sayHi(@WebParam(name = "text") String text); }








