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);
}
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);
}
Aggregations