Error generate XML of
katiaSouza opened this issue · 4 comments
@dilipkrish When I tries see the XML of my service happens an error(the page can't be rendered). I could see that occurrs error because my model have a field that is generic list, when I removed the list, my application returned works and I could see the XML.
Error message:
This page contains the following errors:
error on line 1 at column 10260: Extra content at the end of the document
Below is a rendering of the page up to the first error.
Model
Customer{
String id;
String name;
List
get and set...
}
Are you know any about this?
@katiaSouza Looks like your formatting is all weird. Cant really make out what it is. Could you use the markdown and paste your code between 3 back ticks as described here
public class Customer{ private String id; private String name; private List[Address] address;//(with generic list occurs error, without generic list don't occurs error) public String getId(){ return id; } public void setId(String id){ this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public List[Address] getAddress() { return address; } public void setAddress(List[Address] address) { this.address = address; } }
@katiaSouza Sorry I've been kinda swamped at my day job. It might be a few days before I get to this
@dilipkrish Ok, thanks by your attention.