cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: JAXB and DOM
Date Wed, 15 Jul 2009 16:03:38 GMT
On Tue July 14 2009 5:34:11 pm Benson Margulies wrote:
> If someone just wants to pass arbitrary XML out of a JAX-WS+JAXB
> service, what do they use for a return type? org.w3c.dom.Document?
> JAXBElement?

Usually org.w3c.dom.Element, but out of a webservice method might be tough.  I 
THINK you would need to create the proper wrapper class as you would also need 
to add an @XmlAnyElement(lax="false") attribute to the field.    If it's a 
field in another JAXB bean, it's just a Element with that annotation.


-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Mime
View raw message