JAXB and Castor are better fits than JiBX with the current Axis architecture, just because they use SAX parsers rather than the pull parser used by JiBX. I'd love to see a version of Axis based on a pull parser. I think the SAX handling is pretty deeply engrained, though.

I've thought about doing some experiments to see how fast a lightweight pull parser SOAP engine could work in combination with JiBX. It seems like it'd be a great combination for adapting existing Java applications for document/literal web services. It's likely to be a while before I can put any energy into it, though - I just posted the beta 2 release of JiBX, and want to get that pushed through to production release before I sign on to any other (non-paying) projects.

- Dennis

Dennis M. Sosnoski
Enterprise Java, XML, and Web Services Support - http://www.sosnoski.com
JiBX Lead Developer - http://www.jibx.org
Redmond, WA  425.885.7197

[EMAIL PROTECTED] wrote:

Yes, you could write a JAXBSerializer, JAXBDeserializer,
JAXBSerializerFactory, and JAXBDeserializerFactory.  Then, map your QNAME
to your Java class, specifying these factories, in the typemapping section
of your WSDD.

However, you might want to consider using Castor or JiBX instead, and write
serializers for those.  I don't believe the JAXB-RI is licensed for
commercial use, and to my knowledge (I could be wrong, and usually am),
there are no implementations of the latest spec besides the RI.  Also, you
will have to muddy up your XSD to get your classes to implement
serializable, and anything that uses thoses classes will have to have all
of the JAXB and JAXB related jars in it's classpath, regardless of whether
or not it intends to do (un)marshalling.  Also, the abstraction of the
generated classes in JAXB is a bit annoying.  I just want stupid data types
with direct instantiation that are not coupled with the binding framework.
Castor and JiBX will let you map any standard XML Schema (i.e. no other
namespaces) to plain-old JavaBeans.  JiBX performance rocks, but many more
developers are familiar with Castor.

The current Castor serializer in the Axis code assumes a default mapping.
I've seldom gotten away with not having to write a mapping file with Castor
so you may have to write your own serializer.  I'm writing one right now
that just looks for a file named "mapping.xml" in the classpath.

Cheers
Steve Maring




"Mark D. Hansen" <[EMAIL PROTECTED] To: "AXIS Users (E-mail)" <[EMAIL PROTECTED]> m> cc: 07/23/2003 05:53 Subject: WSDL2Java with JAXB ?? PM Please respond to axis-user





Is is possible to replace the XML Schema --> Java mapping mechanism in WSDL2Java with JAXB? Alternatively, is there another way to use JAXB as the binding mechanism within the Axis framework?

Thanks,

Mark




_________________________________________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.






Reply via email to