Search in sources :

Example 1 with XFireCompatibilityServiceConfiguration

use of org.apache.cxf.aegis.databinding.XFireCompatibilityServiceConfiguration in project cxf by apache.

the class CollectionTestsWithService method before.

@Before
public void before() {
    impl = new CollectionService();
    createService(CollectionServiceInterface.class, impl, null);
    ClientProxyFactoryBean proxyFac = new ClientProxyFactoryBean();
    proxyFac.getServiceFactory().getServiceConfigurations().add(0, new XFireCompatibilityServiceConfiguration());
    proxyFac.setDataBinding(new AegisDatabinding());
    proxyFac.setAddress("local://CollectionServiceInterface");
    proxyFac.setBus(getBus());
    csi = proxyFac.create(CollectionServiceInterface.class);
}
Also used : ClientProxyFactoryBean(org.apache.cxf.frontend.ClientProxyFactoryBean) XFireCompatibilityServiceConfiguration(org.apache.cxf.aegis.databinding.XFireCompatibilityServiceConfiguration) AegisDatabinding(org.apache.cxf.aegis.databinding.AegisDatabinding) Before(org.junit.Before)

Example 2 with XFireCompatibilityServiceConfiguration

use of org.apache.cxf.aegis.databinding.XFireCompatibilityServiceConfiguration in project cxf by apache.

the class AbstractAegisTest method setupAegis.

protected void setupAegis(AbstractWSDLBasedEndpointFactory sf, AegisDatabinding binding) {
    if (binding == null) {
        AegisContext context = new AegisContext();
        if (enableJDOM) {
            context.setEnableJDOMMappings(true);
        }
        binding = new AegisDatabinding();
        // perhaps the data binding needs to do this for itself?
        binding.setBus(BusFactory.getDefaultBus());
        if (enableJDOM) {
            // this preserves pre-2.1 behavior.
            binding.setAegisContext(context);
        }
    }
    sf.getServiceFactory().getServiceConfigurations().add(0, new XFireCompatibilityServiceConfiguration());
    sf.getServiceFactory().setDataBinding(binding);
}
Also used : AegisDatabinding(org.apache.cxf.aegis.databinding.AegisDatabinding) XFireCompatibilityServiceConfiguration(org.apache.cxf.aegis.databinding.XFireCompatibilityServiceConfiguration)

Aggregations

AegisDatabinding (org.apache.cxf.aegis.databinding.AegisDatabinding)2 XFireCompatibilityServiceConfiguration (org.apache.cxf.aegis.databinding.XFireCompatibilityServiceConfiguration)2 ClientProxyFactoryBean (org.apache.cxf.frontend.ClientProxyFactoryBean)1 Before (org.junit.Before)1