Permalink
Browse files

unmarshall error details correctly.

  • Loading branch information...
1 parent ad4570e commit f7f032ed2e2fe1b026986d65178033a5181305b8 Albert Cheng committed Dec 17, 2012
@@ -21,6 +21,7 @@
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElementWrapper;
/**
* This type maps the XML returned in the odata ATOM serialization
@@ -39,7 +40,8 @@
@XmlElement(name = "EndTime", namespace = Constants.ODATA_DATA_NS)
protected Date endTime;
- @XmlElement(name = "ErrorDetails", namespace = Constants.ODATA_DATA_NS)
+ @XmlElementWrapper(name = "ErrorDetails", namespace = Constants.ODATA_DATA_NS)
+ @XmlElement(name = "element", namespace = Constants.ODATA_DATA_NS)
protected List<ErrorDetailType> errorDetails;
@XmlElement(name = "MediaProcessorId", namespace = Constants.ODATA_DATA_NS)

0 comments on commit f7f032e

Please sign in to comment.