use of org.apache.cxf.aegis.databinding.AegisDatabinding in project cxf by apache.
the class InheritancePOJOTest method setUp.
@Before
public void setUp() throws Exception {
super.setUp();
ServerFactoryBean sf = createServiceFactory(InheritanceService.class, null, "InheritanceService", new QName("urn:xfire:inheritance", "InheritanceService"), null);
AegisContext globalContext = new AegisContext();
globalContext.setWriteXsiTypes(true);
Set<String> l = new HashSet<>();
l.add(Employee.class.getName());
globalContext.setRootClassNames(l);
AegisDatabinding binding = new AegisDatabinding();
binding.setAegisContext(globalContext);
sf.getServiceFactory().setDataBinding(binding);
sf.create();
}
use of org.apache.cxf.aegis.databinding.AegisDatabinding in project cxf by apache.
the class DOMMappingTest method setUp.
@Before
public void setUp() throws Exception {
super.setUp();
createService(DocumentService.class, "DocService");
ClientProxyFactoryBean proxyFac = new ClientProxyFactoryBean();
ReflectionServiceFactoryBean factory = new ReflectionServiceFactoryBean();
factory.getServiceConfigurations().add(0, new org.apache.cxf.aegis.databinding.XFireCompatibilityServiceConfiguration());
proxyFac.setServiceFactory(factory);
proxyFac.setDataBinding(new AegisDatabinding());
proxyFac.setAddress("local://DocService");
proxyFac.setBus(getBus());
Object proxyObj = proxyFac.create(IDocumentService.class);
docClient = (IDocumentService) proxyObj;
Client client = ClientProxy.getClient(proxyObj);
ClientImpl clientImpl = (ClientImpl) client;
clientImpl.setSynchronousTimeout(1000000000);
}
Aggregations