Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body>
  2.  
  3. javax.xml.bind.JAXBException: class java.util.LinkedList nor any of its super class is known to this context
  4.  
  5. @XmlElementWrapper(name="error_list")
  6. @XmlElement(name="error")
  7.  
  8. @WebService()
  9. public class TechnicalSOAP {
  10. @WebMethod
  11. public Object technicalMethods(){
  12. List<Device> devicesList = new LinkedList();
  13. devicesList.add(new Device);
  14. return devicesList;
  15. }
  16.  
  17. public class Device(){
  18. private Integer id;
  19. public void setId(Integer id){
  20. this.id = id;
  21. }
  22. public void getId(){
  23. return this.id;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement