Skip to main content

org.apache.cxf.annotations.DataBinding (since 2.2.4)

Sets the DataBinding class that is associated with the service. By default, CXF assumes you are using the JAXB data binding. However, CXF supports different databindings such as XMLBeans, Aegis, SDO, and possibly more. This annotation can be used in place of configuration to select the databinding class.

@DataBinding(org.apache.cxf.sdo.SDODataBinding.class)
public interface MyService {
   public commonj.sdo.DataObject echoStruct(
      commonj.sdo.DataObject struct
   );
}

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!