I've got a JAXWS web service setup, much like the CXF tutorials. It's
wonderful. I have some annotated classes (XmlElement, XmlAttributes,
etc). I create the Java object on the client, call the client proxy, and
poof on the server I have the resulting Java object to use in the
invoked web service method. Life is good :).

However, I need to support a straight xml over http interface as well as
SOAP. The object XML is the same inside the soap message as the object
XML I'll be receiving in my straight xml over http support. I'd like to
hook into whatever code CXF is using to do the Java<->XML translation.
I've been looking at the JAXB stuff and it's way more complicated. It
wants me to create an ObjectFactory, create marshal() and unmarshal()
methods, etc. 

It seems like there must be a simpler way. CXF is doing this all for me
beautifully right now within the web service call so some subportion of
that is already doing the XML-to-object translation work. Is there a way
I can make us of that rather than going down the pure JAXB route which,
frankly, looks painful.

Thanks,
Chris
 

Reply via email to