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

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -