Here you can find the source of unMarshallRequest(String xmlString)
public static Object unMarshallRequest(String xmlString)
//package com.java2s; //License from project: Apache License import java.io.ByteArrayInputStream; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; public class Main { private static JAXBContext jaxbRequestContext = null; public static Object unMarshallRequest(String xmlString) { Object request = null;/*www . j a v a2 s . c o m*/ try { Unmarshaller um = getRequestContext().createUnmarshaller(); request = um.unmarshal(new ByteArrayInputStream(xmlString.getBytes())); } catch (JAXBException je) { je.printStackTrace(); } return request; } private static JAXBContext getRequestContext() { try { if (jaxbRequestContext == null) jaxbRequestContext = JAXBContext.newInstance("flowers.salta.resource.request"); } catch (JAXBException je) { je.printStackTrace(); } return jaxbRequestContext; } }