You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Mike Cassisa <MC...@cricketcommunications.com> on 2006/04/03 23:30:38 UTC

XML Beans Factory vs Constructor

Hello,    
    we are attempting to migrate a web service from JBoss.Net a-la Jboss
3.2.7 to JBossWS4EE which is using jax-rpc and an underlying axis.  We
have the ser/deserialization working correctly but have run into
problems with enumerations.  The problem that we also had to deal with
mainly for the initial use of JBoss.Net and that was how to create new
objects.
 
So here is the question:
Is there any way for XML beans to support constructors over factories?
Seems like a simple wrapping constructor should do the trick?  Currently
our wscompile operation fails due to enumerations in one of our
simpleTypes.  Java beans are required to have a no argument constructor
at a minimum so it seems reasonable to put one on the generated xml
beans so that they can work with things that are expecting basic java
beans.
 
Also is there any plan for supporting JAXB 2.0 conventions?  Since the
web services standards are headed that way it would be nice if we could
continue to use xml beans.  If not there may not be any good way to
integrate xml beans with future web services which would be a big
dissapointment.
 
Thanks,
Mike Cassisa
Engineering Manager
Cricket Communications
10307 Pacific Center Court
San Diego, CA 92121
858-882-6096 Office
 
"There are two ways of constructing a software design... one way is to
make it so simple there are obviously no deficiencies, the other way is
to make it so complicated that there are no obvious deficiencies.  
The first method is far more difficult."
-Unknown