Hi Paul,
See my comments inline

On 10/27/05, Paul Grillo <[EMAIL PROTECTED]> wrote:

Short question:  Can I use XMLBeans as distributed by xmlbeans.apache.org as my serializer/deserializer in Axis2?  If so how?


Yes. The default databinding framework is XMLBeans :) don't specifiy any -d flag and the code gen pickes up the XMLBeans databainding

I have a simple WSDL backed up by a few Schemas.  They generate clean java classes in Axis 1.2
 So I ran them through Axis2, and what I got was about 653 various uncompiled files generated of which only about 30 reflect the actual beans I'll be interacting with.  It also appeared to insist on pre-pending "codegen.databinding" to the package names that are reflective of my chosen namespace.  I guess I was pretty surprised at all that was generated, the naming etec etc.



Well the XMLBeans integration to Axis2 is such that the Axis2's package structure decides (to a certain extent) what the XMLBeans packaging should be. We have not yet done the necessary work to have the full flexibilty of the scomp but yes, we hope to go there soon. 

I then used scomp from xmlbeans v2 distribution, and it generated a very nice jar file with pretty much what I expected.  The compiler was much more powerful and provides me with some other capabilities.  I would like to use this in "either" Axis 1.2 or Axis2.  Is it possible?


I don't think Axis1 can use XMLBeans generated classes (unless you manually edit the classes). Sadly your choice will only be Axis2

I do not want to tie my databinding to a web services framework.  I am willing to use stand-alone XMLBeans.  Is this doable?


oops!  No. At the moment you cannot say  'don't do databinding'

thanks

 

 

 

 




--
Ajith Ranabahu

Reply via email to