users@jaxb.java.net

RE: JAXB and Web Services

From: Lawrence, Gabriel <glawrence_at_ucsd.edu>
Date: Mon, 10 Feb 2003 09:52:15 -0800

This message was originally submitted by glawrence_at_UCSD.EDU to the
JAXB-INTEREST list at JAVA.SUN.COM. If you simply forward it back to the list,
using a mail command that generates "Resent-" fields (ask your local user
support or consult the documentation of your mail program if in doubt), it will
be distributed and the explanations you are now reading will be removed
automatically. If on the other hand you edit the contributions you receive into
a digest, you will have to remove this paragraph manually. Finally, you should
be able to contact the author of this message by using the normal "reply"
function of your mail program.

----------------- Message requiring your approval (30 lines) ------------------
I've been using JAXB in conjunction with SAAJ to do SOAP web services.
It works, but in a clunky way. You need to schlep the JAXB objects into
SAAJ using a JAXBSource, which you can set at the envelope level. Which
means that you have to create JAXB mappings for the SOAP envelop schema
in order to integrate the two.

Once you get that in place, things seem to work fine... It would be nice
if there was more of an integration between the two...

-gabe

-----Original Message-----
From: Andrew Wellman [mailto:aj_at_wellmans.com]
Sent: Sunday, February 09, 2003 6:47 AM
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: JAXB and Web Services

JAXB gurus,
Has anyone employed JAXB into a Web Services architecture? This seems
like one of the most important potential benefits of JAXB to me --
custom
data serialization in web services -- yet I have seen nothing about it.
I would really like to hear about any JAXB (or similar) strategies that
anyone has used in solving complex data objects, such as an order or
application -- into and out of SOAP.

If you have them, examples always help :)

Regards,
Andrew Wellman