java - javax.xml.bind.UnmarshalException: unexpected element WTH? -


Can some please tell me how I go to the trouble of this stupid namespace and right?! Parsing XML should not be difficult!

  JASAB unmerchanting exception; Nested exception javax.xml.bind.UnmarshalException: Unexpected element (uri: "", city: "getRecordsResponse") are required elements: http://www.example.com/task}getRecords  
< P> Here is the janoteated class by JAXB2 and Maven.

  @XmlAccessorType (XmlAccessType.FIELD) @XmlType (name = "", propOrder = { "getRecordsResult"}) @ XmlRootElement (name = "getRecordsResponse") public class GetRecordsResponse { 

How do I tell JAXB2 to add the correct namespace?


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -