JAXBContext jaxbContext=JAXBContext.newInstance("org.uddi.api_v3");
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
marshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);
marshaller.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");
ObjectFactory factory = new ObjectFactory();
AuthToken authToken = factory.createAuthToken();
authToken.setAuthInfo(UTF8_WORD);
StringWriter writer = new StringWriter();
JAXBElement<AuthToken> element = new JAXBElement<AuthToken>(new QName("","fragment"),AuthToken.class,authToken);
marshaller.marshal(element,writer);
String actualXml=writer.toString();