Following works good:

Server:
-------
ServerFactoryBean  svrFactory = new ServerFactoryBean();
    HashMap<String, Object> props = new HashMap<String, Object>();
                props.put(AegisDatabinding.WRITE_XSI_TYPE_KEY, true);
                ArrayList<String> l = new ArrayList<String>();
                l.add(YourCustomClassName.class.getName());
                props.put(AegisDatabinding.OVERRIDE_TYPES_KEY, l);

                svrFactory.setServiceClass(InterfaceClassName.class);
                svrFactory.setAddress(address);
                svrFactory.setServiceBean(InterfaceImpl);
                svrFactory.getServiceFactory().setDataBinding(new
AegisDatabinding());
                svrFactory.setProperties(props);
                svrFactory.getServiceFactory().setProperties(props);
                svrFactory.create();

Client (not dynamic):
---------------------
Map<String, Object> props = new HashMap<String, Object>();
                 props.put(AegisDatabinding.WRITE_XSI_TYPE_KEY,
Boolean.TRUE);
                 //props.put(AegisDatabinding.READ_XSI_TYPE_KEY,
"false");
                 List<String> l = new ArrayList<String>();
                 l.add(YourCustomClassName.class.getName());
                 props.put(AegisDatabinding.OVERRIDE_TYPES_KEY, l);
                ClientProxyFactoryBean factory = new
ClientProxyFactoryBean();
                factory.setProperties(props);
                factory.getServiceFactory().setProperties(props);
                factory.setServiceClass(InterfaceClassName.class);
                factory.setAddress(address);
                factory.getServiceFactory().setDataBinding(new
AegisDatabinding());

     InterfaceClassName client = factory.create();

        Object o = client.yourMethod();




-----Original Message-----
From: Valerio Schiavoni [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2008 2:43 PM
To: [email protected]
Subject: Re: Problem deserializing pojos (fields not initialized)

ehm..i forgot to had copy/paste this line to the example code showcasing
the
problem:

wsServerFactoryBean.getServiceFactory().setDataBinding(new
AegisDatabinding());


so: same error as before..


-- 
http://www.linkedin.com/in/vschiavoni
http://jroller.com/vschiavoni

Reply via email to