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
RE: Problem deserializing pojos (fields not initialized)
Following works good: Server: --- ServerFactoryBean svrFactory = new ServerFactoryBean(); HashMap props = new HashMap(); props.put(AegisDatabinding.WRITE_XSI_TYPE_KEY, true); ArrayList l = new ArrayList(); 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 props = new HashMap(); props.put(AegisDatabinding.WRITE_XSI_TYPE_KEY, Boolean.TRUE); //props.put(AegisDatabinding.READ_XSI_TYPE_KEY, "false"); List l = new ArrayList(); 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: cxf-user@incubator.apache.org 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
Re: Problem deserializing pojos (fields not initialized)
Hello , your code works fine, and infact my tests are now green-like-grass. The only minor issue is that: AegisDatabinding.WRITE_XSI_TYPE_KEY is deprecated in the 2.1-SNAPSHOT release I've been using. What should I use instead ? On Tue, Apr 1, 2008 at 2:38 PM, Alpin, Luba <[EMAIL PROTECTED]> wrote: > Following works good: > > Server: > --- > ServerFactoryBean svrFactory = new ServerFactoryBean(); >HashMap props = new HashMap(); >props.put(AegisDatabinding.WRITE_XSI_TYPE_KEY, true); >ArrayList l = new ArrayList(); >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 props = new HashMap(); > props.put(AegisDatabinding.WRITE_XSI_TYPE_KEY, > Boolean.TRUE); > //props.put(AegisDatabinding.READ_XSI_TYPE_KEY, > "false"); > List l = new ArrayList(); > 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: cxf-user@incubator.apache.org > 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 > -- http://www.linkedin.com/in/vschiavoni http://jroller.com/vschiavoni
Re: Problem deserializing pojos (fields not initialized)
Create an AegisContext, set the flag in there, push it into the AegisDatabinding.
RE: Problem deserializing pojos (fields not initialized)
I really would like to help, but I don't know I don't use it. Regards, Luba. -Original Message- From: Valerio Schiavoni [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 4:02 PM To: cxf-user@incubator.apache.org Subject: Re: Problem deserializing pojos (fields not initialized) Hello , your code works fine, and infact my tests are now green-like-grass. The only minor issue is that: AegisDatabinding.WRITE_XSI_TYPE_KEY is deprecated in the 2.1-SNAPSHOT release I've been using. What should I use instead ? On Tue, Apr 1, 2008 at 2:38 PM, Alpin, Luba <[EMAIL PROTECTED]> wrote: > Following works good: > > Server: > --- > ServerFactoryBean svrFactory = new ServerFactoryBean(); >HashMap props = new HashMap(); >props.put(AegisDatabinding.WRITE_XSI_TYPE_KEY, true); >ArrayList l = new ArrayList(); >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 props = new HashMap(); > props.put(AegisDatabinding.WRITE_XSI_TYPE_KEY, > Boolean.TRUE); > //props.put(AegisDatabinding.READ_XSI_TYPE_KEY, > "false"); > List l = new ArrayList(); > 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: cxf-user@incubator.apache.org > 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 > -- http://www.linkedin.com/in/vschiavoni http://jroller.com/vschiavoni
Re: Problem deserializing pojos (fields not initialized)
It works fine On Wed, Apr 2, 2008 at 3:06 PM, Benson Margulies <[EMAIL PROTECTED]> wrote: > Create an AegisContext, set the flag in there, push it into the > AegisDatabinding. > For the curious ones, here's the code for the client (server is the same): clientProxyfactoryBean = new ClientProxyFactoryBean(); clientProxyfactoryBean.setServiceClass(clazz); clientProxyfactoryBean.setAddress(address); final AegisDatabinding aegisDatabinding = new AegisDatabinding(); AegisContext aegisCtx = new AegisContext(); aegisCtx.setReadXsiTypes(true); aegisDatabinding.setAegisContext(aegisCtx); clientProxyfactoryBean.getServiceFactory().setDataBinding( aegisDatabinding); -- http://www.linkedin.com/in/vschiavoni http://jroller.com/vschiavoni
RE: Problem deserializing pojos (fields not initialized)
Thanks, I need help to run it on https. Regards, Luba. -Original Message- From: Valerio Schiavoni [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 5:03 PM To: cxf-user@incubator.apache.org Subject: Re: Problem deserializing pojos (fields not initialized) It works fine On Wed, Apr 2, 2008 at 3:06 PM, Benson Margulies <[EMAIL PROTECTED]> wrote: > Create an AegisContext, set the flag in there, push it into the > AegisDatabinding. > For the curious ones, here's the code for the client (server is the same): clientProxyfactoryBean = new ClientProxyFactoryBean(); clientProxyfactoryBean.setServiceClass(clazz); clientProxyfactoryBean.setAddress(address); final AegisDatabinding aegisDatabinding = new AegisDatabinding(); AegisContext aegisCtx = new AegisContext(); aegisCtx.setReadXsiTypes(true); aegisDatabinding.setAegisContext(aegisCtx); clientProxyfactoryBean.getServiceFactory().setDataBinding( aegisDatabinding); -- http://www.linkedin.com/in/vschiavoni http://jroller.com/vschiavoni
Re: Problem deserializing pojos (fields not initialized)
I don't see what https has to do with this.
RE: Problem deserializing pojos (fields not initialized)
I need use secure SOAP. I succeeded with publish my services on "https://localhost:8080/ServiceName"; But client methods call fails. Thanks for your time. Regards, Luba. -Original Message- From: Benson Margulies [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 5:27 PM To: cxf-user@incubator.apache.org Subject: Re: Problem deserializing pojos (fields not initialized) I don't see what https has to do with this.
Re: Problem deserializing pojos (fields not initialized)
Why don't you send in a new email message with a new subject line that describes exactly what you did and what didn't work. This thread was about the very specific question of the new configuration system for Aegis. On Wed, Apr 2, 2008 at 10:33 AM, Alpin, Luba <[EMAIL PROTECTED]> wrote: > I need use secure SOAP. > I succeeded with publish my services on > "https://localhost:8080/ServiceName"; > But client methods call fails. > Thanks for your time. > Regards, > Luba. > > > > -Original Message- > From: Benson Margulies [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 02, 2008 5:27 PM > To: cxf-user@incubator.apache.org > Subject: Re: Problem deserializing pojos (fields not initialized) > > I don't see what https has to do with this. >