Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @WebService
- public class MyStudent {
- @WebMethod
- public Student getStudent() {
- Student s = new Student();
- // Setting the attributes of student class and returning them
- return s;
- }
- }
- public class Student implements Serializable{
- private static final long serialVersionUID = 1L;
- public int no;
- public String name;
- public int getNo() {
- return no;
- }
- public void setNo(int no) {
- this.no = no;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- }
- <return/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement