users@jaxb.java.net

Re: Conversion between JAXB binding object and SOAPElement

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Fri, 07 Nov 2003 09:17:48 -0800

Thanks for sharing the code.

I studied SAAJ a bit more carefully, and it seems to allow you to create
a new SOAPElement from SOAPFactory. So what if you do:

    SOAPElement parent =
    SOAPFactory.newInstance().createElement("dummy");
    
    marshaller.marshal( jaxbObject, new DOMResult(parent) );
    
    return (SOAPElement)parent.getChildElements().next()

?

regards,
--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net