I need to create one of these as the interface requires it...can someone please let me know how to create one, as there doesnt seem to be a c'tor defined?
+1
A:
I don't know why you think there's no constructor. See the API.
Matthew Flaschen
2009-06-10 11:49:24
A:
Here is how I do it. You will need to get the namespace URL and the element name from your generated code.
new JAXBElement(new QName("http://www.novell.com/role/service","userDN"),new String("").getClass(),testDN);
JC
2010-04-15 21:22:34