这里演示将一个对象作为参数
package org.hzq.ws;
import java.util.Calendar;
public class Student {
private Integer id;
private String name;
private String password;
private Calendar birthDay;
public Calendar getBirthDay() {
return birthDay;
}
public void setBirthDay(Calendar birthDay) {
this.birthDay = birthDay;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public String toString() {
return "Student [birthDay=" + birthDay + ", id=" + id + ", name="
+ name + ", password=" + password + "]";
}
}
注:以下主要是用axis2的eclispe插件生成相关代码和发布这个服务。