Perhaps, but when I try to unmarshall the XML produced, I get
NullPointerException. Here is my unmarshalling code. Any help you can
provide is much appreciated.
JAXBContext jaxbContext = JAXBContext.newInstance
("com.javector.xml.soap.wsrm.jaxb" );
Unmarshaller u = jaxbContext.createUnmarshaller();
u.setValidating(false);
Element elt_rm = null;
NodeList nl = soapHeader.getElementsByTagNameNS
(WSRM_NAMESPACE_URI,
WSRM_LOCAL_RELIABLEMESSAGE);
if ( nl != null ) { elt_rm = (Element) nl.item(0); }
if (elt_rm != null ) {
rm = (ReliableMessage) u.unmarshal(elt_rm); }
-----Original Message-----
From: Discussion list for the Java Architecture for XML Binding
[mailto:JAXB-INTEREST_at_JAVA.SUN.COM]On Behalf Of Kohsuke Kawaguchi
Sent: Thursday, May 08, 2003 11:01 AM
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: Re: Losing namespace prefixes on attributes when marshalling to
DOM [More Info]
I think you are just misunderstanding the XML Namespace. What's JAXB is
producing is correct.
regards,
--
Kohsuke KAWAGUCHI 408-276-7063 (x17063)
Sun Microsystems kohsuke.kawaguchi_at_sun.com