tags:

views:

875

answers:

2

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
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