1
我有一个名为“Customer_Service”的Java Web服务,它使用名为“Customer”的类作为类型。您可以使用“Customer_Service”将“客户”对象添加到数据库。在客户端,我无法在“客户”中调用某种方法。除此方法外,其他所有方法都可以正常工作。以下是我的Customer类的外观。客户端调用时缺少JAX-WS项目类中的方法
public class Customer {
private int customerId;
private String dob;
public int getCustomerId() {
return customerId;
}
public void setCustomerId(int customerId) {
this.customerId = customerId;
}
public String getDob() {
return dob;
}
// this method cannot be accessed by client
public void setDob(String dob) {
this.dob = dob;
}
}
清洁和构建做到了。谢谢! –