Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. @WebService
  2. public class MyStudent {
  3. @WebMethod
  4. public Student getStudent() {
  5. Student s = new Student();
  6. // Setting the attributes of student class and returning them
  7. return s;
  8. }
  9. }
  10.  
  11. public class Student implements Serializable{
  12. private static final long serialVersionUID = 1L;
  13. public int no;
  14. public String name;
  15. public int getNo() {
  16. return no;
  17. }
  18. public void setNo(int no) {
  19. this.no = no;
  20. }
  21. public String getName() {
  22. return name;
  23. }
  24. public void setName(String name) {
  25. this.name = name;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement