JAXBContext jaxbContext=JAXBContext.newInstance("org.apache.juddi.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();
GetPublisherDetail getPublisherDetail = new GetPublisherDetail();
getPublisherDetail.authInfo = "some token";
StringWriter writer = new StringWriter();
JAXBElement<GetPublisherDetail> element = new JAXBElement<GetPublisherDetail>(new QName("","fragment"),GetPublisherDetail.class,getPublisherDetail);