Unmarshall « jaxb « Java Enterprise Q&A





1. Problems parsing webservice response (Metro/JAXB)    stackoverflow.com

I have generated a Metro/JAXB client from a WSDL before and the marshalling/unmarshalling of the Java classes to/from SOAP/XML worked without any issues. I have generated a new client and ...

2. Jersey doesn't unmarshall Java generic type    stackoverflow.com

I would like to have a service that answers to POST requests on /contact with the following payload:

{"records":[{"firstname":"John","lastname":"Doe"}]} 
Ideally, records should be a wrapper for all sorts of types: Contact, Order, ...

3. jaxb marshall and unmarshall    coderanch.com

4. Unmarshall with JAXB Error    coderanch.com

I am using JAXB to unmarshall an xml file obtained from a web service call. The service is running on .NET and returns the xsd and then the xml. I used the xsd to generate the classes with JAXB. When I try to unmarshall the xml I am getting the following error: org.xml.sax.SAXParseException: unexpected root element (uri:"urn:schemas-microsoft-com:xml-diffgram-v1", local:"diffgram"). Expected elements are ...